C++11 on Mountain Lion and lower?

Titus von Boxberg titus at v9g.de
Wed Dec 4 03:48:13 PST 2013


Am 04.12.2013 11:00, schrieb Chris Jones:
> Hi,
>
> On OSX Macports explicitly links using the libc++ runtime, where as on
> older releases it
>
> This is exactly why c++11 code is fine on OSX10.9, as the default
> compiler libc++ used there supports it, but not on older OSC releases.
> This is why the c++ issue and OSX versions are mixed up here.
As said, this is where the mix up of the issues gets a bit incorrect.

libc++ is available since 10.7.
clang is available from Apple way before Xcode 5.

It's just that the libc++ of 10.9 and clang of Xcode 5
are the first versions by Apple that have had a chance
to use the clang/libc++ that has (or claims to have)
full C++11 support (actually, I don't know
if that's really the case since I don't have 10.9/Xcode 5).

When sticking to C++03 or at most the subset of C++11
that had already been implemented when 10.7.x shipped
(which most ports currently do, I think),
macports should work with libc++ on the three most recent
OSX versions.
(However, I didn't test that assumption, so I don't know
if that's really correct from 10.7 onwards.)

Regards,
Titus




More information about the macports-dev mailing list