diff options
author | Niklas Claesson <nicke.claesson@gmail.com> | 2017-09-14 10:05:37 +0200 |
---|---|---|
committer | Niklas Claesson <nicke.claesson@gmail.com> | 2017-10-01 18:35:33 +0200 |
commit | 09ccd0eeaad402f1e7e5b18bd1ad168a9db2998b (patch) | |
tree | e40e696c26b43be780ddca6ede9c8bc07e91507a /mesonbuild/compilers/c.py | |
parent | 488e57332f2264594ec8e05369664c6a7833f692 (diff) | |
download | meson-09ccd0eeaad402f1e7e5b18bd1ad168a9db2998b.zip meson-09ccd0eeaad402f1e7e5b18bd1ad168a9db2998b.tar.gz meson-09ccd0eeaad402f1e7e5b18bd1ad168a9db2998b.tar.bz2 |
C/C++: Get default include dirs from compilers
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index d4da2da..3f9ba5c 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -172,6 +172,9 @@ class CCompiler(Compiler): def get_linker_search_args(self, dirname): return ['-L' + dirname] + def get_default_include_dirs(self): + return [] + def gen_import_library_args(self, implibname): """ The name of the outputted import library @@ -1082,3 +1085,8 @@ class VisualStudioCCompiler(CCompiler): elif version < 1920: return '14.1' # (Visual Studio 2017) return None + + def get_default_include_dirs(self): + if 'INCLUDE' not in os.environ: + return [] + return os.environ['INCLUDE'].split(os.pathsep) |