From cf1a6e185c7ce3c02c676590efb49a43063e9aa1 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 26 Aug 2011 17:08:42 +0100 Subject: [PATCH] Don't fail to build with llvm if llvm build is newer --- Library/Homebrew/formula.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 42c0e575af..1411646509 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