aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-03-20 10:21:58 -0500
committerMisty De Meo2013-03-20 10:52:51 -0500
commita7e0ad42ea0d6426a7f236a0dc6ba41c42ad9978 (patch)
treed39bec646111152f2ed346c2fbc4303107253fa6 /Library
parent621857282467afa9f2f6dc4e3e86e88a17e07710 (diff)
downloadhomebrew-a7e0ad42ea0d6426a7f236a0dc6ba41c42ad9978.tar.bz2
superenv?: fail when xcode43_developer_dir raises
Diffstat (limited to 'Library')
-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