diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-21 12:42:51 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-28 05:09:59 +0530 |
commit | a83c7b9ad5756330f5ce51ef150f612d3ab2b3ab (patch) | |
tree | 00bbbdc7954a23ce5d6e6686b25664f948aa809a | |
parent | bc8c0730f3389d979569fc1f4c99fb9b8308a923 (diff) | |
download | meson-a83c7b9ad5756330f5ce51ef150f612d3ab2b3ab.zip meson-a83c7b9ad5756330f5ce51ef150f612d3ab2b3ab.tar.gz meson-a83c7b9ad5756330f5ce51ef150f612d3ab2b3ab.tar.bz2 |
Add get_no_stdinc_args() for C++ too
-rw-r--r-- | mesonbuild/compilers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index afe267a..bb9b04a 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1324,6 +1324,9 @@ class CPPCompiler(CCompiler): self.language = 'cpp' CCompiler.__init__(self, exelist, version, is_cross, exe_wrap) + def get_no_stdinc_args(self): + return ['-nostdinc++'] + def sanity_check(self, work_dir, environment): code = 'class breakCCompiler;int main(int argc, char **argv) { return 0; }\n' return self.sanity_check_impl(work_dir, environment, 'sanitycheckcpp.cc', code) |