diff options
| author | Max Howell | 2012-08-31 10:26:22 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-31 10:27:07 -0400 |
| commit | ae17944e063fbdc3d11a0120b746bc55910bc4fb (patch) | |
| tree | ba16100b0c8b803f78421028d886ff3e14947710 | |
| parent | 6c6e82a721f04f3aa4af66130d3e5d80ddb342c8 (diff) | |
| download | brew-ae17944e063fbdc3d11a0120b746bc55910bc4fb.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 |
