changeset 3289:b28756fd131c

* src/build-msvctools/cc-msvc.cc: Allow to preprocess-only. Make sure to run the compiler, and not the linker, when doing only pre-processing. Required to compile libgpg_error, which pre-processes a header file.
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 07 Nov 2013 13:15:25 -0500
parents 55c51f5ec98d
children dc1eedc77dbb
files src/build-msvctools/cc-msvc.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/build-msvctools/cc-msvc.cc	Wed Nov 06 15:33:10 2013 -0500
+++ b/src/build-msvctools/cc-msvc.cc	Thu Nov 07 13:15:25 2013 -0500
@@ -435,6 +435,12 @@
 		else if (arg == "-P")
 		{
 			clopt += " -EP";
+			exeoutput = false;
+		}
+                else if (arg == "-E")
+		{
+			clopt += " -E";
+			exeoutput = false;
 		}
 		else if (arg == "-ansi")
 		{