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.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index b781681f8..b4763f8fb 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -339,8 +339,13 @@ class Formula
# latest version we have tested against so we will switch to GCC and
# bump this integer when Xcode 4.3 is released. TODO do that!
if llvm.build.to_i >= 2336
- opoo "Formula will not build with LLVM, using GCC"
- ENV.gcc :force => true
+ if MacOS.xcode_version < "4.2"
+ opoo "Formula will not build with LLVM, using GCC"
+ ENV.gcc :force => true
+ else
+ opoo "Formula will not build with LLVM, trying Clang"
+ ENV.clang :force => true
+ end
return
end
opoo "Building with LLVM, but this formula is reported to not work with LLVM:"