aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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