[cfe-commits] r56822 - in /cfe/trunk: clang.xcodeproj/project.pbxproj lib/Basic/Targets.cpp lib/Lex/Preprocessor.cpp

Chris Lattner sabre at nondot.org
Mon Sep 29 17:46:39 PDT 2008


Author: lattner
Date: Mon Sep 29 19:46:39 2008
New Revision: 56822

URL: http://llvm.org/viewvc/llvm-project?rev=56822&view=rev
Log:
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ is a darwin-specific #define


Modified:
    cfe/trunk/clang.xcodeproj/project.pbxproj
    cfe/trunk/lib/Basic/Targets.cpp
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/clang.xcodeproj/project.pbxproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/clang.xcodeproj/project.pbxproj?rev=56822&r1=56821&r2=56822&view=diff

==============================================================================
--- cfe/trunk/clang.xcodeproj/project.pbxproj (original)
+++ cfe/trunk/clang.xcodeproj/project.pbxproj Mon Sep 29 19:46:39 2008
@@ -862,13 +862,13 @@
 				DE3985780CB8ADC800223765 /* ASTConsumers.h */,
 				DE39857A0CB8ADCB00223765 /* ASTConsumers.cpp */,
 				DE38CF150D8C9DE000A273B6 /* DiagChecker.cpp */,
+				72D16C210D9975EA00E6DA4A /* HTMLPrint.cpp */,
 				DE5932CF0AD60FF400BC794C /* PrintParserCallbacks.cpp */,
 				DE5932D00AD60FF400BC794C /* PrintPreprocessedOutput.cpp */,
-				352981080CC58344008B5E84 /* SerializationTest.cpp */,
-				72D16C210D9975EA00E6DA4A /* HTMLPrint.cpp */,
 				9030C1090E807A9300941490 /* RewriteBlocks.cpp */,
 				DEA0EBD90DD2D3C8007A02A9 /* RewriteMacros.cpp */,
 				035611E10DB40C8100D2EF2A /* RewriteObjC.cpp */,
+				352981080CC58344008B5E84 /* SerializationTest.cpp */,
 			);
 			name = Driver;
 			sourceTree = "<group>";

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=56822&r1=56821&r2=56822&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Sep 29 19:46:39 2008
@@ -42,7 +42,8 @@
 static void getDarwinDefines(std::vector<char> &Defs) {
   Define(Defs, "__APPLE__");
   Define(Defs, "__MACH__");
-
+  Define(Defs, "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050");
+  
   if (0)  // darwin_pascal_strings
     Define(Defs, "__PASCAL_STRINGS__");
 }

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=56822&r1=56821&r2=56822&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Mon Sep 29 19:46:39 2008
@@ -428,8 +428,8 @@
   DefineBuiltinMacro(Buf, "__clang__=1");  // Clang Frontend
   
   // Compiler set macros.
+  // Claim to be GCC 4.2.1-5621
   DefineBuiltinMacro(Buf, "__APPLE_CC__=5621");
-  DefineBuiltinMacro(Buf, "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050");
   DefineBuiltinMacro(Buf, "__GNUC_MINOR__=2");
   DefineBuiltinMacro(Buf, "__GNUC_PATCHLEVEL__=1");
   DefineBuiltinMacro(Buf, "__GNUC__=4");





More information about the cfe-commits mailing list