[87417] trunk/dports/devel/ice-cpp/Portfile

Ryan Schmidt ryandesign at macports.org
Sun Nov 20 16:32:03 PST 2011


On Nov 20, 2011, at 17:05, blair at macports.org wrote:

> Revision: 87417
>          http://trac.macports.org/changeset/87417
> Author:   blair at macports.org
> Date:     2011-11-20 15:05:37 -0800 (Sun, 20 Nov 2011)
> Log Message:
> -----------
> ice-cpp: do not compile with clang++, use c++ instead.  Closes #31069.
> 
> See this for ZeroC's lack of commitment in supporting clang:
> http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html
> 
> Modified Paths:
> --------------
>    trunk/dports/devel/ice-cpp/Portfile
> 
> Modified: trunk/dports/devel/ice-cpp/Portfile
> ===================================================================
> --- trunk/dports/devel/ice-cpp/Portfile	2011-11-20 22:34:53 UTC (rev 87416)
> +++ trunk/dports/devel/ice-cpp/Portfile	2011-11-20 23:05:37 UTC (rev 87417)
> @@ -84,6 +84,12 @@
> 
> use_configure   no
> 
> +# Work around invalid C++ code by compiling with g++ instead of clang.  See
> +# http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html
> +if {${configure.compiler} == "clang"} {
> +        configure.compiler gcc-4.2
> +}

gcc-4.2 is not available on Xcode 4.2 and later -- the same versions of Xcode which would default to clang -- so you cannot rely on it exclusively.

Also, what of llvm-gcc-4.2?

See:

https://trac.macports.org/wiki/PortfileRecipes#compiler

If llvm-gcc-4.2 works, use that (2nd block of code at that link). If only gcc-4.2 works, use that but fall back to apple-gcc42 (3rd block of code).




More information about the macports-dev mailing list