Implement fails_with_llvm compat method in terms of fails_with

This commit is contained in:
Jack Nagel 2014-02-24 23:26:11 -05:00
parent 03811e6423
commit 403fdc7523

View File

@ -9,9 +9,7 @@ class Formula
end end
def self.fails_with_llvm msg=nil, data={} def self.fails_with_llvm msg=nil, data={}
case msg when Hash then data = msg end data = msg if Hash === msg
failure = CompilerFailure.new(:llvm) { build(data.delete(:build).to_i) } fails_with(:llvm) { build(data.delete(:build).to_i) }
@cc_failures ||= Set.new
@cc_failures << failure
end end
end end