aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-09-18 14:46:09 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-09-25 15:03:09 +0200
commit8a5671c01736e5ecbe5c7f5949e2560ab7092a0e (patch)
treefb318806e4f2327898fce206e966de976aa3879d
parent5bec6c28e7e762dc61a5c5643714d63c39b57877 (diff)
downloadmeson-8a5671c01736e5ecbe5c7f5949e2560ab7092a0e.zip
meson-8a5671c01736e5ecbe5c7f5949e2560ab7092a0e.tar.gz
meson-8a5671c01736e5ecbe5c7f5949e2560ab7092a0e.tar.bz2
gnome: use project compiler flags in gtkdoc
If add_project_arguments is used, gtkdoc will ignore it, so make sure we pick these flags for the compiler too. Fixes #2901
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index c07f6f6..5128de4 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -326,7 +326,7 @@ class GnomeModule(ExtensionModule):
for dep in deps:
if isinstance(dep, InternalDependency):
- cflags.update(dep.compile_args)
+ cflags.update(dep.get_compile_args())
cflags.update(get_include_args(dep.include_directories))
for lib in dep.libraries:
if hasattr(lib, 'held_object'):
@@ -1018,6 +1018,10 @@ This will become a hard error in the future.''')
ldflags.update(state.environment.coredata.get_external_link_args('c'))
compiler = state.environment.coredata.compilers.get('c')
+ compiler_flags = self._get_langs_compilers_flags(state, [('c', compiler)])
+ cflags.update(compiler_flags[0])
+ ldflags.update(compiler_flags[1])
+ ldflags.update(compiler_flags[2])
if compiler:
args += ['--cc=%s' % ' '.join(compiler.get_exelist())]
args += ['--ld=%s' % ' '.join(compiler.get_linker_exelist())]