diff options
| author | Max Howell | 2012-08-31 10:26:22 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-31 10:27:07 -0400 |
| commit | 3a637c2a92f96c89b9971a26a7d6a5d429599eab (patch) | |
| tree | 848716b41bdd9662cfe71ba29d029ca06af634b9 | |
| parent | 1c7e060c668e284114cb025ec9a37da15300c46f (diff) | |
| download | homebrew-3a637c2a92f96c89b9971a26a7d6a5d429599eab.tar.bz2 | |
Raise if sdk_path is nil for nclt
This situation should be impossible now (in that, we should detect sdk_path provided we also detected nclt), so if it happens somehow raise in such a way that the user will be encouraged to report the bug.
| -rw-r--r-- | Library/Homebrew/superenv.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb index 6e29dd858..5161e7e6c 100644 --- a/Library/Homebrew/superenv.rb +++ b/Library/Homebrew/superenv.rb @@ -40,6 +40,7 @@ class << ENV def setup_build_environment reset + check ENV['LD'] = 'cc' ENV['MAKEFLAGS'] ||= "-j#{determine_make_jobs}" ENV['PATH'] = determine_path @@ -54,6 +55,10 @@ class << ENV ENV['VERBOSE'] = '1' if ARGV.verbose? end + def check + raise if MacSystem.xcode43_without_clt? and MacOS.sdk_path.nil? + end + def universal_binary append 'HOMEBREW_CCCFG', "u", '' end |
