From 21fb06087ffee53c82bd563fc08f601f06712b0b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 4 Aug 2014 18:32:08 +0300 Subject: Add the object file generated by MSVS pch compilation to the link command line as it is apparently required on some versions. --- environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'environment.py') diff --git a/environment.py b/environment.py index 640892e95..8bff47590 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') -- cgit v1.2.3