[cfe-dev] __APPLE_CC__ macro

b17 c0de b17c0de at gmail.com
Fri Jun 26 15:52:38 PDT 2015


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150627/12833738/attachment.html>


More information about the cfe-dev mailing list