aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2011-08-23 23:27:32 +0100
committerMax Howell2011-08-24 22:30:43 +0100
commit4dc8318dc38f6dc5e6a9cad85f94dd1096d43313 (patch)
tree637133724500f91c6d1d3704c8cab9116e625dc7
parent39453f5a9d49041de592375668e078541e8a49ea (diff)
downloadbrew-4dc8318dc38f6dc5e6a9cad85f94dd1096d43313.tar.bz2
Observe all applicable options in handle_llvm_failure
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c6e5aae51..173c7d187 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -305,8 +305,8 @@ class Formula
end
def handle_llvm_failure llvm
- unless (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm' or ARGV.include? '--use-clang')
- ENV.gcc_4_2 if default_cc =~ /llvm/
+ unless ENV.use_llvm? or ENV.use_clang?
+ ENV.gcc_4_2 if MacOS.default_cc =~ /llvm/
return
end