aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMax Howell2012-02-21 10:32:48 +0000
committerMax Howell2012-02-21 10:33:03 +0000
commit6b2340fd92bbd3c27aa4e5f79e5ee474382c171f (patch)
tree4849334164f9b4ba7b603d6ee02a4fff07c2ebde /Library/Homebrew/extend
parent1e62ec70326af16be5feacc257f176f6beaf5a5e (diff)
downloadhomebrew-6b2340fd92bbd3c27aa4e5f79e5ee474382c171f.tar.bz2
Don't hang if xcode-select -print-path is "/"
Introducing MacOS.xctools_fucked?. Refs #10293.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 0373bced1..2f2a0d90a 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -94,7 +94,7 @@ module HomebrewEnvExtension
def xcrun tool
if File.executable? "/usr/bin/#{tool}"
"/usr/bin/#{tool}"
- elsif system "/usr/bin/xcrun -find #{tool} 2>1 1>/dev/null"
+ elsif not MacOS.xctools_fucked? and system "/usr/bin/xcrun -find #{tool} 2>1 1>/dev/null"
# xcrun was provided first with Xcode 4.3 and allows us to proxy
# tool usage thus avoiding various bugs
"/usr/bin/xcrun #{tool}"