From ec7178061207cfc66f17f0137e41297a1a856de5 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Tue, 25 Oct 2011 11:55:09 -0700 Subject: [PATCH] formula.rb: Change fails_with_llvm for XCode 4.2 Suggest trying `--use-clang` instead of `--use-gcc` (which does nothing). Signed-off-by: Adam Vandenberg --- Library/Homebrew/formula.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9609e608e6..2609c13151 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -351,7 +351,11 @@ class Formula that we can update the formula accordingly. Thanks! EOS puts - puts "If it doesn't work you can: brew install --use-gcc" + if xcode_version < "4.2" + puts "If it doesn't work you can: brew install --use-gcc" + else + puts "If it doesn't work you can try: brew install --use-clang" + end puts end end