aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb25
1 files changed, 10 insertions, 15 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 51e5dd397..add827979 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -296,23 +296,18 @@ class Formula
end
def handle_llvm_failure llvm
- unless ENV.use_llvm? or ENV.use_clang?
- ENV.gcc_4_2 if MacOS.default_cc =~ /llvm/
- return
- end
-
- opoo "LLVM was requested, but this formula is reported as not working with LLVM:"
- puts llvm.reason
-
- if ARGV.force?
- puts "Continuing anyway.\n" +
- "If this works, let us know so we can update the formula to remove the warning."
+ case ENV.compiler
+ case :llvm, :clang
+ opoo "LLVM was requested, but this formula is reported to not work with LLVM:"
+ puts llvm.reason
+ puts
+ puts "We are continuing anyway so the build succeeds, please let us know so we can"
+ puts "update the formula. If it doesn't work you can: brew install --use-gcc"
+ puts
else
- puts "Continuing with GCC 4.2 instead.\n"+
- "(Use `brew install --force #{name}` to force use of LLVM.)"
- ENV.gcc_4_2
+ ENV.gcc if MacOS.default_cc =~ /llvm/
+ return
end
- puts
end
def self.class_s name