Support Xcode 4.3 xcode-select being wrong

I installed Xcode 4.3 and xcode-select is wrong, so this will fix it for most users.
This commit is contained in:
Max Howell 2012-02-16 15:29:22 +00:00
parent b63584a386
commit 4fa82d9e1f

View File

@ -290,6 +290,9 @@ module MacOS extend self
# we do this to support cowboys who insist on installing # we do this to support cowboys who insist on installing
# only a subset of Xcode # only a subset of Xcode
Pathname.new '/Developer' Pathname.new '/Developer'
elsif File.directory? '/Applications/Xcode.app/Contents/Developer'
# fallback for broken Xcode 4.3 installs
Pathname.new '/Applications/Xcode.app/Contents/Developer'
else else
nil nil
end end