[135656] trunk/dports/_resources/port1.0/group/cxx11-1.0.tcl

Ryan Schmidt ryandesign at macports.org
Tue Apr 28 21:51:28 PDT 2015


> On Apr 28, 2015, at 11:31 PM, ionic at macports.org wrote:
> 
> Revision
> 135656
> Author
> ionic at macports.org
> Date
> 2015-04-28 21:31:27 -0700 (Tue, 28 Apr 2015)
> Log Message
> 
> cxx11-1.0: new PortGroup.
> Added Paths
> 
> 	• trunk/dports/_resources/port1.0/group/cxx11-1.0.tcl

> +PortGroup compiler_blacklist_versions 1.0
> +
> +# Compilers supporting C++11 are GCC >= 4.6 and clang >= 3.3.
> +# As we only support libc++, clang is implicitly required.
> +# Blacklist all GCC compilers to not accidentally pull in libstdc++.
> +# We do not know what "cc" is, so blacklist it as well.
> +compiler.blacklist-append   {*gcc*} {clang < 500} macports-clang-2.* \
> +                            {macports-clang-3.[0-2]} cc

Enclosing "*gcc*" and "macports-clang-3.[0-2]" in curly brackets looks strange to me. The reason "clang < 500" is quoted is so that it will be interpreted as a single value and parsed by the compilers_blacklist_versions portgroup, but "*gcc*" is already only a single value so doesn't need to be quoted. The ports clang29, clang30, clang31 and clang32 no longer exist so there's no need to blacklist them.




More information about the macports-dev mailing list