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:
#defineAPPLE_CC 6000
#defineapple_build_version 6020053
#defineclang_version “6.1.0 (clang-602.0.53)”
And another newer version of Apple clang defines:
#defineAPPLE_CC 6000
#defineapple_build_version 7000053
#defineclang_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?
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>