aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-08-26 17:08:42 +0100
committerMax Howell2011-08-31 17:36:41 +0100
commitcf1a6e185c7ce3c02c676590efb49a43063e9aa1 (patch)
treec5690c8cfee132c6734e0fd6fd3c3ccb7b4ec835 /Library
parent5b00ab493bbe734eb646276174f85d770470449c (diff)
downloadbrew-cf1a6e185c7ce3c02c676590efb49a43063e9aa1.tar.bz2
Don't fail to build with llvm if llvm build is newer
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 42c0e575a..141164650 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -224,7 +224,14 @@ class Formula
end
def fails_with_llvm?
- self.class.fails_with_llvm_reason || false
+ llvm = self.class.fails_with_llvm_reason
+ if llvm
+ if llvm.build
+ MacOS.llvm_build_version <= llvm.build
+ else
+ true
+ end
+ end
end
# sometimes the clean process breaks things