diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-10-23 17:24:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 17:24:46 +0300 |
commit | 4c2b64188d574af79f4e949078a352e39710ed68 (patch) | |
tree | 0f5f30bd067e829b696f72df4be731bf1896817c /mesonbuild/compilers/mixins/visualstudio.py | |
parent | 064165485ce00aac64afd98120fd725032e559fd (diff) | |
parent | ebbaeec51b5c5c8177fe6583a2a5bd6b7f929684 (diff) | |
download | meson-4c2b64188d574af79f4e949078a352e39710ed68.zip meson-4c2b64188d574af79f4e949078a352e39710ed68.tar.gz meson-4c2b64188d574af79f4e949078a352e39710ed68.tar.bz2 |
Merge pull request #10916 from xclaesse/preprocess
Add cc.preprocess() method
Diffstat (limited to 'mesonbuild/compilers/mixins/visualstudio.py')
-rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index dc5e962..76ce9c1 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -159,6 +159,9 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): def get_preprocess_only_args(self) -> T.List[str]: return ['/EP'] + def get_preprocess_to_file_args(self) -> T.List[str]: + return ['/EP', '/P'] + def get_compile_only_args(self) -> T.List[str]: return ['/c'] @@ -173,6 +176,8 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): return ['/fsanitize=address'] def get_output_args(self, target: str) -> T.List[str]: + if self.mode == 'PREPROCESSOR': + return ['/Fi' + target] if target.endswith('.exe'): return ['/Fe' + target] return ['/Fo' + target] |