aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMax Howell2012-02-16 15:29:22 +0000
committerMax Howell2012-02-16 15:29:36 +0000
commitec01869246a15760ac40cfd9ed570d8f3c3458cd (patch)
treee4f7ee1d6a7841581f628447b8da9b5f46a716e4 /Library/Homebrew/utils.rb
parentbc76acd603c7e2f1922057a7829aea89a53ecc75 (diff)
downloadhomebrew-ec01869246a15760ac40cfd9ed570d8f3c3458cd.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/Homebrew/utils.rb')
-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