From a83c7b9ad5756330f5ce51ef150f612d3ab2b3ab Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 21 Jan 2017 12:42:51 +0530 Subject: [PATCH] Add get_no_stdinc_args() for C++ too --- mesonbuild/compilers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index afe267ad0..bb9b04a6e 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)