diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-01-02 21:34:39 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-01-02 21:34:39 +0200 |
commit | 4c041e2aec22f007b79a314d6f0472a1bc9bae2f (patch) | |
tree | c004a878cf825d2408382821f2f195158294fd8a /backends.py | |
parent | edaf663ee2e7dfc01af3cace2f83a3fca7ef94d3 (diff) | |
download | meson-4c041e2aec22f007b79a314d6f0472a1bc9bae2f.zip meson-4c041e2aec22f007b79a314d6f0472a1bc9bae2f.tar.gz meson-4c041e2aec22f007b79a314d6f0472a1bc9bae2f.tar.bz2 |
Can tag include directories as system dirs to reduce compiler warning noise. Closes #345.
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends.py b/backends.py index 64d3860..748a742 100644 --- a/backends.py +++ b/backends.py @@ -201,7 +201,7 @@ class Backend(): def get_pch_include_args(self, compiler, target): args = [] pchpath = self.get_target_private_dir(target) - includeargs = compiler.get_include_args(pchpath) + includeargs = compiler.get_include_args(pchpath, False) for lang in ['c', 'cpp']: p = target.get_pch(lang) if len(p) == 0: @@ -238,7 +238,7 @@ class Backend(): if compiler.language == 'fortran': for lt in target.link_targets: priv_dir = os.path.join(self.get_target_dir(lt), lt.get_basename() + lt.type_suffix()) - incflag = compiler.get_include_args(priv_dir) + incflag = compiler.get_include_args(priv_dir, False) commands += incflag return commands |