On Dec 14, 2013, at 09:21, [email protected] wrote:

> Revision
> 114733
> Author
> [email protected]
> Date
> 2013-12-14 07:21:50 -0800 (Sat, 14 Dec 2013)
> Log Message
> 
> Update build configuration for OpenJDK 7. We have to use llvm-gcc-4.2; 
> OpenJDK 8 should support clang as shipped by Xcode.
> Modified Paths
> 
>       • users/landonf/openjdk7/dports/java/openjdk6/Portfile


> +# Java 8 should support clang directly
> +depends_build       port:llvm-gcc42

> +    CC="${prefix}/bin/llvm-gcc-4.2" \
> +    CXX="${prefix}/bin/llvm-g++-4.2” \

This will unnecessarily make users of Xcode < 5 install the llvm-gcc42 port, 
when they have a perfectly good version of llvm-gcc42 provided by Xcode. Rather 
than this, you should use compiler.blacklist. For example, if no clang compiler 
will work, blacklist all of them with:

compiler.blacklist *clang*

MacPorts will pick the next-best compiler, which will be llvm-gcc42, either the 
version provided by Xcode or the one provided by MacPorts, depending on what’s 
available. You can then use the variables ${configure.cc}, ${configure.cxx}, 
etc. where you need them.


_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to