From d4cfa1c0c5e68c147b790604e99b0da3c91ce689 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 10 Sep 2012 16:16:08 -0500 Subject: [PATCH] Add deprecation warning to non-DSL fails_with_llvm Signed-off-by: Jack Nagel --- Library/Homebrew/compat/compatibility.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index b6e01b290c..41874e0639 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -75,6 +75,8 @@ class Formula # 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 + opoo "Calling fails_with_llvm in the install method is deprecated" + puts "Use the fails_with DSL instead." FailsWithLLVM.new(msg, data).handle_failure end