gcc-4.2 vs apple-gcc-4.2

Ryan Schmidt ryandesign at macports.org
Sun Jan 22 14:18:58 PST 2012


On Jan 17, 2012, at 17:43, Jeremy Huddleston wrote:

> That looks good to me

We might further simplify the block like so:

if {${configure.compiler} == "llvm-gcc-4.2"} {
    configure.compiler gcc-4.2
} elseif {${configure.compiler} == "clang"} {
    depends_build-append port:apple-gcc42
    configure.compiler apple-gcc-4.2
    # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
    configure.cxx ${prefix}/bin/g++-apple-4.2
}

I think I like this version best; it seems simplest. Any objection to using this version in the PortfileRecipes and in all ports currently using the other version?




More information about the macports-dev mailing list