
13 Jun
2011
13 Jun
'11
7:33 p.m.
On Sun, Jun 12, 2011 at 4:27 AM, Daniel James <dnljms@gmail.com> wrote:
On 10 June 2011 18:13, Doug Gregor <doug.gregor@gmail.com> wrote:
For Clang feature tests, please use __has_feature (or the newer __has_extension) rather than peeking at Clang version numbers. __has_feature/__has_extension are language-dialect aware and represent what the compiler actually supports, while Clang version numbers can vary widely from one vendor to another (e.g., Apple's version numbers for its Clang-based compilers are distinct from the LLVM project's version numbers for Clang).
Can we distinguish between Apple's versions and LLVM's versions?
__APPLE_CC__ will say whether we're running on Darwin, but otherwise, no. - Doug