aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-31 10:26:22 -0400
committerMax Howell2012-08-31 10:27:07 -0400
commit3a637c2a92f96c89b9971a26a7d6a5d429599eab (patch)
tree848716b41bdd9662cfe71ba29d029ca06af634b9
parent1c7e060c668e284114cb025ec9a37da15300c46f (diff)
downloadhomebrew-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.rb5
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