diff options
| author | Misty De Meo | 2013-03-13 10:00:07 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-03-20 10:52:51 -0500 |
| commit | 16672b9d826988535f6684ec0b4ddb41da7ddc89 (patch) | |
| tree | b43aaf21914a82d9a489b4186910cc73c2879677 /Library | |
| parent | 5c746bf8557ff159a9fcb3951265e12910495a09 (diff) | |
| download | brew-16672b9d826988535f6684ec0b4ddb41da7ddc89.tar.bz2 | |
superenv: move check logic into superenv?
Fixes Homebrew/homebrew#16292.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/superenv.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb index b79bba914..993a51b1e 100644 --- a/Library/Homebrew/superenv.rb +++ b/Library/Homebrew/superenv.rb @@ -17,6 +17,8 @@ def superbin end def superenv? + not (MacSystem.xcode43_without_clt? and + MacOS.sdk_path.nil?) and # because superenv will fail to find stuff not MacOS::Xcode.folder.nil? and # because xcrun won't work superbin and superbin.directory? and not ARGV.include? "--env=std" @@ -40,7 +42,6 @@ class << ENV def setup_build_environment reset - check ENV['CC'] = 'cc' ENV['CXX'] = 'c++' ENV['OBJC'] = 'cc' @@ -61,10 +62,6 @@ class << ENV ENV['ACLOCAL_PATH'] = determine_aclocal_path end - def check - raise if MacSystem.xcode43_without_clt? and MacOS.sdk_path.nil? - end - def universal_binary append 'HOMEBREW_CCCFG', "u", '' end |
