From 4fa82d9e1f50068316934027dc12e57ed53603c6 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 16 Feb 2012 15:29:22 +0000 Subject: 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. --- Library/Homebrew/utils.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3