gcc-4.2 for Leopard
Rainer Müller
raimue at macports.org
Sat Jun 14 11:45:54 PDT 2008
Hi,
currently we hardcode gcc-4.0 for Leopard (or Darwin 9) in
port1.0/portconfigure.tcl, but as far as I am informed the next Xcode
release will contain gcc-4.2. But will it also still contain gcc-4.0?
I think we need an additional check for the Xcode version in our default
selecting code here from port1.0/portconfigure.tcl:
if {""==${configure.compiler}} {
switch -exact "${os.platform} ${os.major}" {
"darwin 7" { set configure.compiler gcc-3.3 }
"darwin 8" { set configure.compiler gcc-4.0 }
"darwin 9" { set configure.compiler gcc-4.0 }
}
}
Wouldn't an option in macports.conf to select the default compiler be
useful?
Rainer
More information about the macports-dev
mailing list