Ignore:
Timestamp:
Mar 25, 2011, 12:47:00 PM (9 years ago)
Author:
jmr@…
Message:

xcode portgroup: set GCC_VERSION when configure.compiler can be translated into something Xcode knows about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/xcode-1.0.tcl

    r69161 r77279  
    265265    append xcode_build_args " SDKROOT=\"${configure.sdkroot}\""
    266266
     267    # GCC_VERSION
     268    switch -- [option configure.compiler] {
     269        gcc-3.3 {set gcc_version 3.3}
     270        gcc-4.0 {set gcc_version 4.0}
     271        gcc-4.2 {set gcc_version 4.2}
     272        llvm-gcc-4.2 {set gcc_version com.apple.compilers.llvmgcc42}
     273        clang {set gcc_version com.apple.compilers.llvm.clang.1_0}
     274    }
     275    if {[info exists gcc_version]} {
     276        append xcode_build_args " GCC_VERSION=${gcc_version}"
     277    }
     278
    267279    return $xcode_build_args
    268280}
Note: See TracChangeset for help on using the changeset viewer.