Changeset 115428


Ignore:
Timestamp:
Jan 2, 2014, 12:04:28 AM (6 years ago)
Author:
jeremyhu@…
Message:

portconfigure: Since it's the SDKROOT that matters, check that directly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portconfigure.tcl

    r113062 r115428  
    427427# internal function to choose compiler fallback list based on platform
    428428proc portconfigure::get_compiler_fallback {} {
    429     global xcodeversion macosx_deployment_target default_compilers
     429    global xcodeversion macosx_deployment_target default_compilers configure.sdkroot
    430430    if {[info exists default_compilers]} {
    431431        return $default_compilers
     
    439439        return {llvm-gcc-4.2 clang gcc-4.2 macports-clang-3.3 apple-gcc-4.2}
    440440    } elseif {[vercmp $xcodeversion 3.2] >= 0} {
    441         if {$macosx_deployment_target == "10.4"} {
    442             # It's not the deployment target that is the issue, it's the
    443             # 10.4u SDK which base chooses if the deployment_target is set
     441        if {[string match *10.4u* ${configure.sdkroot}]} {
    444442            return {gcc-4.0}
    445443        } else {
Note: See TracChangeset for help on using the changeset viewer.