summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-10-13 16:48:37 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-10-14 13:27:43 (GMT)
commit70e268da3e5f8e00bdf065786cd685a9660fe1c4 (patch)
treec1729c016f5e40210bc8f944a5090b9df17095fe /Source
parent47092d3e809be971264a8d5416ff3cb9255f6565 (diff)
downloadCMake-70e268da3e5f8e00bdf065786cd685a9660fe1c4.zip
CMake-70e268da3e5f8e00bdf065786cd685a9660fe1c4.tar.gz
CMake-70e268da3e5f8e00bdf065786cd685a9660fe1c4.tar.bz2
cmcldeps: prefer the /TC flag
The /TC flag causes all source files to be processed as C source files. We know that there is only one, so this is safe.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmcldeps.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index bfbb5fd..b86ad6e 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -279,12 +279,7 @@ int main()
clrest = replace(clrest, "/fo", "/out:");
clrest = replace(clrest, objfile, objfile + ".dep.obj ");
- // rc: src\x\x.rc -> cl: /Tc src\x\x.rc
- if (srcfile.find(' ') != std::string::npos)
- srcfile = "\"" + srcfile + "\"";
- clrest = replace(clrest, srcfile, "/Tc " + srcfile);
-
- cl = "\"" + cl + "\" /P /DRC_INVOKED ";
+ cl = "\"" + cl + "\" /P /DRC_INVOKED /TC ";
// call cl in object dir so the .i is generated there
std::string objdir;