Permalink
Browse files

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.
  • Loading branch information...
1 parent bc76acd commit ec01869246a15760ac40cfd9ed570d8f3c3458cd @mxcl mxcl committed Feb 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Library/Homebrew/utils.rb
@@ -290,6 +290,9 @@ def xcode_prefix
# 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

0 comments on commit ec01869

Please sign in to comment.