From 85b17ecb4ebeb0100bb367e4696878cc7fe2d7ec Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 14 Oct 2011 23:38:59 -0500 Subject: [PATCH] brew-unpack: define fails_with_llvm? as false brew-unpack was failing for formulae that satisfy fails_with_llvm? as handle_llvm_failure() requires our ENV extension to get ENV.compiler. Rather than requiring extend/ENV, just define fails_with_llvm? as false since we don't really care about that when just unpacking a formula. Signed-off-by: Jack Nagel --- Library/Contributions/examples/brew-unpack.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Contributions/examples/brew-unpack.rb b/Library/Contributions/examples/brew-unpack.rb index d0d505b0a0..d4d72623e2 100755 --- a/Library/Contributions/examples/brew-unpack.rb +++ b/Library/Contributions/examples/brew-unpack.rb @@ -39,6 +39,10 @@ class Formula do_patch end end + + # handle_llvm_failure() requires extend/ENV, so let's never fail + # with llvm since we don't particularly care in this context. + def fails_with_llvm?; false; end end module Homebrew extend self