[cfe-dev] __APPLE_CC__ macro
Jack Howarth
howarth.mailing.lists at gmail.com
Sat Jun 27 08:32:50 PDT 2015
Author: bwilson
Date: Mon Aug 19 15:23:37 2013
New Revision: 188700
URL: http://llvm.org/viewvc/llvm-project?rev=188700&view=rev
Log:
Bump the value of the __APPLE_CC__ predefined macro up to 6000.
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>
On Sat, Jun 27, 2015 at 8:26 AM, b17 c0de <b17c0de at gmail.com> wrote:
> Well __APPLE_CC__ is also hard-coded to 6000 in the open-source clang
> compiler. So it seems appropriate to ask what the point of this macro is
> here.
>
> On Sat, Jun 27, 2015 at 2:02 AM, Robinson, Paul
> <Paul_Robinson at playstation.sony.com> wrote:
>>
>> Questions about Apple products should be asked on an Apple forum. Sorry,
>> this isn't the right place to ask.
>>
>> --paulr
>>
>>
>>
>> From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On
>> Behalf Of b17 c0de
>> Sent: Friday, June 26, 2015 3:53 PM
>> To: cfe-dev Developers
>> Subject: [cfe-dev] __APPLE_CC__ macro
>>
>>
>>
>> Can someone explain the usefulness of __APPLE_CC__? The documentation
>> claims [the] macro is set to an integer that represents the version number
>> of the compiler.
>>
>> But one version of Apple clang defines:
>>
>>
>>
>> #define __APPLE_CC__ 6000
>>
>> #define __apple_build_version__ 6020053
>>
>> #define __clang_version__ "6.1.0 (clang-602.0.53)"
>>
>>
>>
>>
>>
>> And another newer version of Apple clang defines:
>>
>> #define __APPLE_CC__ 6000
>>
>> #define __apple_build_version__ 7000053
>>
>> #define __clang_version__ "7.0.0 (clang-700.0.53.3)"
>>
>>
>>
>> So how does __APPLE_CC__ represent the "version" of the compiler? Is it
>> stuck at 6000 now forever?
>>
>>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
More information about the cfe-dev
mailing list