compilers: Don't add line comments to pre-processed output

We never use preprocessed output anywhere except compiler checks,
so we don't care about the debugging information that it adds.
Just always disable it.

Closes https://github.com/mesonbuild/meson/issues/1726
This commit is contained in:
Nirbheek Chauhan 2017-05-05 17:42:30 +05:30
parent 2b8196a1c8
commit 7dccf0c5ad
1 changed files with 2 additions and 2 deletions

View File

@ -782,7 +782,7 @@ class CCompiler(Compiler):
return self.exelist[:]
def get_preprocess_only_args(self):
return ['-E']
return ['-E', '-P']
def get_compile_only_args(self):
return ['-c']
@ -2135,7 +2135,7 @@ class VisualStudioCCompiler(CCompiler):
return ['/FI' + base, '/Yu' + base, '/Fp' + os.path.join(pch_dir, pchname)]
def get_preprocess_only_args(self):
return ['/E']
return ['/EP']
def get_compile_only_args(self):
return ['/c']