]> granicus.if.org Git - clang/commitdiff
Bump the value of the __APPLE_CC__ predefined macro up to 6000.
authorBob Wilson <bob.wilson@apple.com>
Mon, 19 Aug 2013 20:23:37 +0000 (20:23 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 19 Aug 2013 20:23:37 +0000 (20:23 +0000)
The previous value was set to match some ancient version of Apple's GCC.
The value should be higher than anything used by Apple's GCC, but we don't
intend for this value to be updated in the future. We have other macros to
identify compiler versions. <rdar://problem/14749599>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188700 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index f3822edcd52d738f6af511b8adce0171664c0baa..c4772723e909c13730b2b0530fbb935ce524145b 100644 (file)
@@ -88,7 +88,7 @@ static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts,
                              const llvm::Triple &Triple,
                              StringRef &PlatformName,
                              VersionTuple &PlatformMinVersion) {
-  Builder.defineMacro("__APPLE_CC__", "5621");
+  Builder.defineMacro("__APPLE_CC__", "6000");
   Builder.defineMacro("__APPLE__");
   Builder.defineMacro("__MACH__");
   Builder.defineMacro("OBJC_NEW_PROPERTIES");