diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-04-30 10:19:06 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2023-05-01 12:57:45 -0400 |
commit | ff86e799a4d1119f51d7e7715944a2c87eaef509 (patch) | |
tree | e4557e973f81a73baf5a3ae0cbc57b1030978f45 /mesonbuild/compilers/mixins/visualstudio.py | |
parent | 25f4f77a3b22630032827b1f29eb353b6ff07507 (diff) | |
download | meson-ff86e799a4d1119f51d7e7715944a2c87eaef509.zip meson-ff86e799a4d1119f51d7e7715944a2c87eaef509.tar.gz meson-ff86e799a4d1119f51d7e7715944a2c87eaef509.tar.bz2 |
extract_all_objects: Include PCH object with MSVC
This changes the object file name with ninja backend to match the
name used by vs backend and add it in outputs of the ninja rule.
Diffstat (limited to 'mesonbuild/compilers/mixins/visualstudio.py')
-rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 76d9829..acf475a 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -213,7 +213,7 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): return ['/DEF:' + defsfile] def gen_pch_args(self, header: str, source: str, pchname: str) -> T.Tuple[str, T.List[str]]: - objname = os.path.splitext(pchname)[0] + '.obj' + objname = os.path.splitext(source)[0] + '.obj' return objname, ['/Yc' + header, '/Fp' + pchname, '/Fo' + objname] def openmp_flags(self) -> T.List[str]: |