aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMisty De Meo2013-03-20 10:21:58 -0500
committerMisty De Meo2013-03-20 10:52:51 -0500
commit81f9aef2458685e9416f1d8c4d0c86f340d69cfa (patch)
treef9c9171199fd5c46cc029920c53411ec5124fa12 /Library/Homebrew
parent16672b9d826988535f6684ec0b4ddb41da7ddc89 (diff)
downloadbrew-81f9aef2458685e9416f1d8c4d0c86f340d69cfa.tar.bz2
superenv?: fail when xcode43_developer_dir raises
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/superenv.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb
index 993a51b1e..345943959 100644
--- a/Library/Homebrew/superenv.rb
+++ b/Library/Homebrew/superenv.rb
@@ -19,9 +19,12 @@ end
def superenv?
not (MacSystem.xcode43_without_clt? and
MacOS.sdk_path.nil?) and # because superenv will fail to find stuff
+ MacSystem.xcode43_developer_dir and # because superenv's logic might not find it
not MacOS::Xcode.folder.nil? and # because xcrun won't work
superbin and superbin.directory? and
not ARGV.include? "--env=std"
+rescue # blanket rescue because there are naked raises
+ false
end
class << ENV