On 6/13/14 1:56 PM, Eric Cronin wrote:
>> ++// Apple Clang uses libc++ by default on Mavericks (OS X 10.9)  and higher
>> ++// Apple Clang uses libstdc++ by default on Mountain Lion (OS X 10.8) and 
>> lower
>> ++
>> ++#ifdef __APPLE__
>> ++#include <Availability.h>
>> ++#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1080
>> ++#  define BOOST_APPLE_CLANG_NO_LIBCXX
>> ++#endif
>> ++#endif
>> ++
> It's possible (and I hope someday soon the default, so C++11 code works on 
> those OSes) to build all of MacPorts with libc++ on 10.7/10.8, in which case 
> this code would do the wrong thing.
>
> I think the snippet Jeremy provided in a comment on another issue is more 
> like what is needed here: <https://trac.macports.org/ticket/41154#comment:1>
>
> Thanks,
> Eric
Yes, I'll take a look at this approach but I don't hold out much hope
that libc++ will become the default on anything less than 10.8 in the
near future.

Thanks for the suggestion,

Dave
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to