From a5bdb57a409a8cb805704da1e70950b2bd26fda8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 10 Sep 2012 16:16:08 -0500 Subject: 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(+) (limited to 'Library') diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index b6e01b290..41874e063 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 -- cgit v1.2.3