diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2023-05-01 20:44:23 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-08-22 09:40:30 -0400 |
commit | bde690b06e930020a0ec6ccaea7a76babf77dff5 (patch) | |
tree | e0f267a12363c8879186a375f3b06f589325a048 /mesonbuild | |
parent | 253df6f9f821a3052b56673d5427aca9dfe41eba (diff) | |
download | meson-bde690b06e930020a0ec6ccaea7a76babf77dff5.zip meson-bde690b06e930020a0ec6ccaea7a76babf77dff5.tar.gz meson-bde690b06e930020a0ec6ccaea7a76babf77dff5.tar.bz2 |
compilers: fix checks handling of internal dependencies
The include directories were not passed to the compiler.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index f333357..4999d60 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -450,6 +450,10 @@ class CLikeCompiler(Compiler): for d in dependencies: # Add compile flags needed by dependencies cargs += d.get_compile_args() + system_incdir = d.get_include_type() == 'system' + for i in d.get_include_dirs(): + for idir in i.to_string_list(env.get_source_dir(), env.get_build_dir()): + cargs.extend(self.get_include_args(idir, system_incdir)) if mode is CompileCheckMode.LINK: # Add link flags needed to find dependencies largs += d.get_link_args() |