Implement fails_with_llvm compat method in terms of fails_with
This commit is contained in:
parent
03811e6423
commit
403fdc7523
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user