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:
parent
2b8196a1c8
commit
7dccf0c5ad
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue