diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-08-04 18:32:08 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-08-04 18:32:08 +0300 |
commit | 21fb06087ffee53c82bd563fc08f601f06712b0b (patch) | |
tree | f727529a76a4f6175b756f1ae221d9516c3f626a /environment.py | |
parent | 64b01354fb46dc8622705f07e97b5d1dc99966d9 (diff) | |
download | meson-21fb06087ffee53c82bd563fc08f601f06712b0b.zip meson-21fb06087ffee53c82bd563fc08f601f06712b0b.tar.gz meson-21fb06087ffee53c82bd563fc08f601f06712b0b.tar.bz2 |
Add the object file generated by MSVS pch compilation to the link command line as it is apparently required on some versions.
Diffstat (limited to 'environment.py')
-rw-r--r-- | environment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/environment.py b/environment.py index 640892e..8bff475 100644 --- a/environment.py +++ b/environment.py @@ -890,7 +890,8 @@ class VisualStudioCCompiler(CCompiler): return ['/DLL'] def gen_pch_args(self, header, source, pchname): - return ['/Yc' + header, '/Fp' + pchname] + objname = os.path.splitext(pchname)[0] + '.obj' + return (objname, ['/Yc' + header, '/Fp' + pchname, '/Fo' + objname ]) def sanity_check(self, work_dir): source_name = os.path.join(work_dir, 'sanitycheckc.c') |