[103928] users/larryv/dports/lang/rust/Portfile

larryv at macports.org larryv at macports.org
Sun Mar 10 00:09:53 PST 2013


Revision: 103928
          https://trac.macports.org/changeset/103928
Author:   larryv at macports.org
Date:     2013-03-10 00:09:53 -0800 (Sun, 10 Mar 2013)
Log Message:
-----------
[sandbox] rust: Use bundled LLVM for now because MacPorts' LLVM causes segfault in stage2 compiler.

Also use CPP="${configure.cc} -E" for all compilers, and specify VERBOSE for destroot too.

Modified Paths:
--------------
    users/larryv/dports/lang/rust/Portfile

Modified: users/larryv/dports/lang/rust/Portfile
===================================================================
--- users/larryv/dports/lang/rust/Portfile	2013-03-10 07:44:40 UTC (rev 103927)
+++ users/larryv/dports/lang/rust/Portfile	2013-03-10 08:09:53 UTC (rev 103928)
@@ -87,39 +87,16 @@
                     --enable-local-rust \
                     --local-rust-root=${workpath}/rust-stage0
 
-build.args          CC=${configure.cc} \
-                    CXX=${configure.cxx} \
-                    CPP=${configure.cpp} \
-                    VERBOSE=1
-
 if {[string match *clang* ${configure.compiler}]} {
     configure.args-append   --enable-clang
-    build.args-delete       CPP=${configure.cpp}
-    build.args-append       CPP="${configure.cc} -E"
 }
 
-variant llvm30 conflicts llvm31 llvm32 llvm33 description {Use LLVM 3.0} {
-    depends_lib-append      port:llvm-3.0
-    configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.0
-}
-variant llvm31 conflicts llvm30 llvm32 llvm33 description {Use LLVM 3.1} {
-    depends_lib-append      port:llvm-3.1
-    configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.1
-}
-variant llvm32 conflicts llvm30 llvm31 llvm33 description {Use LLVM 3.2} {
-    depends_lib-append      port:llvm-3.2
-    configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.2
-}
-variant llvm33 conflicts llvm30 llvm31 llvm32 description {Use LLVM 3.3} {
-    depends_lib-append      port:llvm-3.3
-    configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.3
-}
+build.args          CC=${configure.cc} \
+                    CXX=${configure.cxx} \
+                    CPP="${configure.cc} -E" \
+                    VERBOSE=1
 
-if {![variant_isset llvm30] && ![variant_isset llvm31] &&
-    ![variant_isset llvm33]
-} then {
-    default_variants    +llvm32
-}
+destroot.args       VERBOSE=1
 
 livecheck.url       ${homepage}/
 livecheck.regex     "/release-(\\d\.\\d)/"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130310/3643a30c/attachment.html>


More information about the macports-changes mailing list