Ticket #6686: xcode_43.diff
File xcode_43.diff, 1.4 KB (added by , 11 years ago) |
---|
-
tools/build/v2/tools/darwin.jam
a b 70 70 # 71 71 # <root>PATH 72 72 # Platform root path. The common autodetection will set this to 73 # "/ Developer". And when a command is given it will be set to73 # "/Applications/Xcode.app/Contents/Developer". And when a command is given it will be set to 74 74 # the corresponding "*.platform/Developer" directory. 75 75 # 76 76 rule init ( version ? : command * : options * : requirement * ) … … 104 104 bin ?= [ common.get-absolute-tool-path $(command[1]) ] ; 105 105 if $(bin) = "/usr/bin" 106 106 { 107 root ?= / Developer ;107 root ?= /Applications/Xcode.app/Contents/Developer ; 108 108 } 109 109 else 110 110 { … … 312 312 # Determine the MacOSX SDK versions installed and their locations. 313 313 local rule init-available-sdk-versions ( condition * : root ? ) 314 314 { 315 root ?= /Developer ; 316 local sdks-root = $(root)/SDKs ; 317 local sdks = [ GLOB $(sdks-root) : MacOSX*.sdk iPhoneOS*.sdk iPhoneSimulator*.sdk ] ; 315 root ?= /Applications/Xcode.app/Contents/Developer ; 316 local platforms = [ GLOB /Applications/Xcode.app/Contents/Developer/Platforms : *.platform ] ; 317 local sdks = ; 318 for local platform in $(platforms) 319 { 320 sdks += [ GLOB $(platform)/Developer/SDKs : *.sdk ] ; 321 } 318 322 local result ; 319 323 for local sdk in $(sdks) 320 324 {