Changeset 103928


Ignore:
Timestamp:
Mar 10, 2013, 8:09:53 AM (7 years ago)
Author:
larryv@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • users/larryv/dports/lang/rust/Portfile

    r103899 r103928  
    8888                    --local-rust-root=${workpath}/rust-stage0
    8989
     90if {[string match *clang* ${configure.compiler}]} {
     91    configure.args-append   --enable-clang
     92}
     93
    9094build.args          CC=${configure.cc} \
    9195                    CXX=${configure.cxx} \
    92                     CPP=${configure.cpp} \
     96                    CPP="${configure.cc} -E" \
    9397                    VERBOSE=1
    9498
    95 if {[string match *clang* ${configure.compiler}]} {
    96     configure.args-append   --enable-clang
    97     build.args-delete       CPP=${configure.cpp}
    98     build.args-append       CPP="${configure.cc} -E"
    99 }
    100 
    101 variant llvm30 conflicts llvm31 llvm32 llvm33 description {Use LLVM 3.0} {
    102     depends_lib-append      port:llvm-3.0
    103     configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.0
    104 }
    105 variant llvm31 conflicts llvm30 llvm32 llvm33 description {Use LLVM 3.1} {
    106     depends_lib-append      port:llvm-3.1
    107     configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.1
    108 }
    109 variant llvm32 conflicts llvm30 llvm31 llvm33 description {Use LLVM 3.2} {
    110     depends_lib-append      port:llvm-3.2
    111     configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.2
    112 }
    113 variant llvm33 conflicts llvm30 llvm31 llvm32 description {Use LLVM 3.3} {
    114     depends_lib-append      port:llvm-3.3
    115     configure.args-append   --llvm-root=${prefix}/libexec/llvm-3.3
    116 }
    117 
    118 if {![variant_isset llvm30] && ![variant_isset llvm31] &&
    119     ![variant_isset llvm33]
    120 } then {
    121     default_variants    +llvm32
    122 }
     99destroot.args       VERBOSE=1
    123100
    124101livecheck.url       ${homepage}/
Note: See TracChangeset for help on using the changeset viewer.