From ae17944e063fbdc3d11a0120b746bc55910bc4fb Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 31 Aug 2012 10:26:22 -0400 Subject: 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.--- Library/Homebrew/superenv.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3