clang vs llvm-gcc-4.2 with py27-matplotlib

Jeremy Lavergne jeremy at lavergne.gotdns.org
Sat Oct 15 08:44:42 PDT 2011


clang is the default for Xcode 4.2

> In the ticket the reported states that they aren't doing that. What is
> the default compiler for Xcode-4.2?

From base/src/port1.0/portconfigure.tcl:
# internal function to determine the default compiler
proc portconfigure::configure_get_default_compiler {args} {
    global xcodeversion macosx_deployment_target
    if {$xcodeversion == "none" || $xcodeversion == ""} {
        return cc
    } elseif {[vercmp $xcodeversion 4.2] >= 0} {
        return clang
    } elseif {[vercmp $xcodeversion 4.0] >= 0} {
        return llvm-gcc-4.2
    } elseif {[vercmp $xcodeversion 3.2] >= 0 && $macosx_deployment_target != "10.4"} {
        return gcc-4.2
    } else {
        return gcc-4.0
    }
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3749 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20111015/3f6d7a03/attachment.bin>


More information about the macports-users mailing list