Using cxx11 PortGroup on < 10.9

Jeremy Huddleston Sequoia jeremyhu at apple.com
Sun Jan 24 23:15:38 PST 2016


> On Jan 23, 2016, at 14:08, Mojca Miklavec <mojca at macports.org> wrote:
> 
> Hi,
> 
> Would it be possible to implement a way to use the cxx11 PortGroup
> without having to use libc++ as default stdlib? Maybe with an
> additional configuration like:
>    PortGroup cxx11 1.0
>    cxx.require_global_libc++ no
> (but with a better keyword of course).
> 
> What I have in mind are ports that require C++11, but don't have any
> C++ dependencies and thus don't suffer from stdlib incompatibility.
> 
> Examples of such ports would be root6, newer versions of clang etc.

Yes, there are clients which use just the C++ STL and don't export any C++ APIs.  However, clang is not one of them.  It has C++ dependecies (llvm) and exports C++ APIs (libclang).  Since it can't be built on older systems anyways, we just force libc++.

> It
> would be handy to have a shortcut, but cxx11 PortGroup alone is a tiny
> bit too restrictive.

What benefit does "cxx.require_global_libc++ no" have over the current approach of just doing:

    configure.cxx_stdlib libc++
    depends_lib-append port:libcxx

> 
> Mojca
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4109 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160124/807d5802/attachment.p7s>


More information about the macports-dev mailing list