[cfe-commits] r135502 - /cfe/trunk/lib/Basic/Targets.cpp

Chad Rosier mcrosier at apple.com
Tue Jul 19 12:36:03 PDT 2011


Author: mcrosier
Date: Tue Jul 19 14:36:03 2011
New Revision: 135502

URL: http://llvm.org/viewvc/llvm-project?rev=135502&view=rev
Log:
Clang asserts "Invalid environment!" when using -ccc-host-triple 
arch-pc-win32-macho (e.g., x86_64-pc-win32-macho), which appears to be a false
positive.
rdar://9786307

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=135502&r1=135501&r2=135502&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Jul 19 14:36:03 2011
@@ -157,6 +157,10 @@
     Str[4] = '0' + (Rev % 10);
     Str[5] = '\0';
     Builder.defineMacro("__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__", Str);
+  } else if (PlatformName == "win32") {
+    // Due to option -ccc-host-triple arch-pc-win32-macho.
+    // Don't emit __ENVIRONMENT_XX_OS_VERSION_MIN_REQUIRED__ as we're generating
+    // code for Win32 ABI.
   } else {
     // Note that the Driver allows versions which aren't representable in the
     // define (because we only get a single digit for the minor and micro





More information about the cfe-commits mailing list