From 612ff57894e35f7872a86913f338be5f6d539887 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 9 Aug 2010 21:33:30 -0700 Subject: [PATCH] fails_with_llvm will switch to GCC 4.2 by default --- Library/Homebrew/formula.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 44fb96e69a..0e6d6ddd38 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -291,6 +291,16 @@ class Formula opoo "LLVM was requested, but this formula is reported as not working with LLVM:" puts msg puts "Tested with LLVM build #{build}" unless build == nil + puts + + if ARGV.force? + puts "Continuing anyway. If this works, let us know so we can update the\n"+ + "formula to remove the warning." + else + puts "Continuing with GCC 4.2 instead.\n"+ + "(Use `brew install --force ...` to force use of LLVM.)" + ENV.gcc_4_2 + end end protected