Changeset 90016


Ignore:
Timestamp:
Feb 19, 2012, 7:06:41 PM (5 years ago)
Author:
jmr@…
Message:

2.0 branch: update default developer_dir for xcode 4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release_2_0/base/src/port1.0/portmain.tcl

    r90013 r90016  
    146146
    147147proc portmain::get_developer_dir {} {
    148     if {![catch {binaryInPath xcode-select}]} {
    149         return [exec xcode-select -print-path 2> /dev/null]
     148    if {![catch {binaryInPath xcode-select}]
     149        && ![catch {exec xcode-select -print-path 2> /dev/null} result]
     150        && [file isdirectory $result]} {
     151            return $result
    150152    }
    151     return "/Developer"
     153    global xcodeversion
     154    if {[vercmp $xcodeversion 4.3] >= 0} {
     155        return "/Applications/Xcode.app/Contents/Developer"
     156    } else {
     157        return "/Developer"
     158    }
    152159}
    153160
Note: See TracChangeset for help on using the changeset viewer.