From ff86e799a4d1119f51d7e7715944a2c87eaef509 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 30 Apr 2023 10:19:06 -0400 Subject: 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. --- mesonbuild/compilers/mixins/visualstudio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/mixins/visualstudio.py') 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]: -- cgit v1.1