Add deprecation warning to non-DSL fails_with_llvm

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-10 16:16:08 -05:00
parent 59d5a246e7
commit d4cfa1c0c5

View File

@ -75,6 +75,8 @@ class Formula
# This used to be called in "def install", but should now be used # This used to be called in "def install", but should now be used
# up in the DSL section. # up in the DSL section.
def fails_with_llvm msg=nil, data=nil 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 FailsWithLLVM.new(msg, data).handle_failure
end end