From 145bafbc4e72bcc3c8bc6b0f0414ab317f1e8459 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 21 Mar 2011 14:23:28 -0700 Subject: Move 'fails_with_llvm' into formula DSL. Existing method moved to compatibility layer. --- Library/Homebrew/compatibility.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Homebrew/compatibility.rb') diff --git a/Library/Homebrew/compatibility.rb b/Library/Homebrew/compatibility.rb index 8e1a028de..5bc76d3ff 100644 --- a/Library/Homebrew/compatibility.rb +++ b/Library/Homebrew/compatibility.rb @@ -70,4 +70,11 @@ class Formula name end end + + # This used to be called in "def install", but should now be used + # up in the DSL section. + def fails_with_llvm msg=nil, data=nil + handle_llvm_failure FailsWithLLVM.new(msg, data) + end + end -- cgit v1.2.3