compiler.blacklist

Ryan Schmidt ryandesign at macports.org
Fri May 2 18:34:11 PDT 2014


On May 2, 2014, at 20:20, Craig Treleaven wrote:
> 
> For my mythtv-core.xx ports, I want to blacklist clang prior to XCode 5, so I added:
> 
> compiler.blacklist-append { clang <= 500.2.79 } \
>    macports-clang*
> 
> That doesn't work when I build on Lion with XCode 4.3.3 (clang 318.0.61)--it tries to build with clang and falls over.

That sounds like you may not have included the compiler_blacklist_versions 1.0 portgroup. If you do that, it should do what you say: blacklist all MacPorts clangs, and Xcode clangs less than 500. So on Macs with Xcode 4 or earlier, you'll be building with llvm-gcc-4.2 or gcc-4.2. Is that really what you want? If Xcode 5's clang is ok, presumably MacPorts clang 3.5 would work too, maybe even 3.4, and those would probably be preferable to the old llvm-gcc or gcc. 


More information about the macports-dev mailing list