[cmake-developers] Suspicious Clang versions
Sean McBride
sean at rogue-research.com
Mon Aug 5 10:53:02 EDT 2013
On Mon, 5 Aug 2013 08:08:20 +0200, Rolf Eike Beer said:
>So
>any version checking like I do in the CXXFeatures test ("I have compiler
>version X, the supported features should be ...") is entirely mood for Clang.
>Great.
Well, I don't know what we're really talking about here... but it sounds like you're trying to determine a compiler's features based on its version number. That's inherently pretty fragile, don't you agree?
I do know that the clang folks discourage trying to determine clang's abilities from its version number. Instead, they have a mechanism called 'Feature Checking Macros' described here:
<http://clang.llvm.org/docs/LanguageExtensions.html#feature-checking-macros>
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the cmake-developers
mailing list