Add get_no_stdinc_args() for C++ too

This commit is contained in:
Nirbheek Chauhan 2017-01-21 12:42:51 +05:30
parent bc8c0730f3
commit a83c7b9ad5
1 changed files with 3 additions and 0 deletions

View File

@ -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)