gcc-4.2 vs apple-gcc-4.2

Jeremy Huddleston jeremyhu at macports.org
Mon Jan 23 19:20:20 PST 2012


On Jan 23, 2012, at 1:52 PM, Bradley Giesbrecht wrote:

> On Jan 22, 2012, at 2:18 PM, Ryan Schmidt wrote:
> 
>> 
>> 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?
> 
> Might it be advantageous to use a PortGroup for this?

No.  This needs to be done on a case-by-case basis, and hopefully whomever determines it necessary will file bug reports against clang and provide links to said reports (or at minimum, add comments as to why the newer compilers fail to work, so I can file such reports).

--Jeremy



More information about the macports-dev mailing list