[cfe-commits] [libcxx] r136526 - in /libcxx/trunk: include/__config include/memory src/exception.cpp

Ted Kremenek kremenek at apple.com
Fri Jul 29 15:18:20 PDT 2011


On Jul 29, 2011, at 3:02 PM, Howard Hinnant wrote:

> On Jul 29, 2011, at 5:58 PM, Chris Lattner wrote:
> 
>> 
>> On Jul 29, 2011, at 2:35 PM, Howard Hinnant wrote:
>> 
>>> Author: hhinnant
>>> Date: Fri Jul 29 16:35:53 2011
>>> New Revision: 136526
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=136526&view=rev
>>> Log:
>>> Configure to get along with 2.9 clang
>> 
>> Hi Howard,
>> 
>> Checking __clang_major__ is really gross.  Is there any other way to do this?
>> 
>> -Chris
> 
> 
> I need _LIBCPP_HAS_NO_ADVANCED_SFINAE to be set for clang versions less than 3, and not for versions 3 and greater.  __clang_major__ seems to do exactly what I need.
> 
> Howard

Can't we just define a __has_feature() for this?  That's why we invented it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110729/014756d9/attachment.html>


More information about the cfe-commits mailing list