[100023] trunk/dports/devel/codeblocks/Portfile

Anders F Björklund afb at macports.org
Sun Nov 25 01:26:18 PST 2012


Ryan Schmidt wrote:

>> +# apparently only works with gcc
>> +if {${configure.compiler} == "clang"} {
>> +    configure.compiler gcc
>> +}
>> +
> 
> "gcc" is an alias, not a specific compiler, so it should not be used in configure.compiler.

Why not ? I wanted system gcc...

> On latest Xcode for example, "gcc" is a symlink to llvm-gcc. What you probably should write is:
> 
> compiler.blacklist clang
> 
> And add a comment above that, referencing the upstream bug port about the problem. If there isn't one yet, please file one; blacklisting compilers is meant to be a temporary measure.

It's not so much that clang is on the blacklist, as it is that Code::Blocks 10.05
was only tested with wxMac and Snow Leopard and thus requiring both GCC and SDK...

For it to work with later releases, someone would need to port it to wxOSX/Cocoa.
But that won't happen until the next release, so is different from "fixing" the port.

Will add llvm-gcc-4.2 and MacOSX10.6.sdk for Lion, but Mountain Lion is out (for now).

--anders



More information about the macports-dev mailing list