aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-02-16 15:29:22 +0000
committerMax Howell2012-02-16 15:29:36 +0000
commit4fa82d9e1f50068316934027dc12e57ed53603c6 (patch)
tree2a33f938096245c98d74811d28059518efa49474 /Library
parentb63584a386036aecf8718efc7d4b926eea8c1f87 (diff)
downloadbrew-4fa82d9e1f50068316934027dc12e57ed53603c6.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index b565d1988..c7da0db6c 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -290,6 +290,9 @@ module MacOS extend self
# we do this to support cowboys who insist on installing
# only a subset of Xcode
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
nil
end