diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-05-05 17:42:30 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-05-05 17:42:30 +0530 |
commit | 7dccf0c5adc8f92192ffe8688abf29a51eb86bc5 (patch) | |
tree | c5ff5991d8d8e003b88662de67ee030e45571502 /mesonbuild/compilers.py | |
parent | 2b8196a1c8793fbdd4a41477d77be3fcd0e8287e (diff) | |
download | meson-7dccf0c5adc8f92192ffe8688abf29a51eb86bc5.zip meson-7dccf0c5adc8f92192ffe8688abf29a51eb86bc5.tar.gz meson-7dccf0c5adc8f92192ffe8688abf29a51eb86bc5.tar.bz2 |
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
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r-- | mesonbuild/compilers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index f4439dc..406c719 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -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'] |