From 403fdc7523b5e1d75916f5374503b8aee3abfcf4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 24 Feb 2014 23:26:11 -0500 Subject: [PATCH] Implement fails_with_llvm compat method in terms of fails_with --- Library/Homebrew/compat/fails_with_llvm.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/compat/fails_with_llvm.rb b/Library/Homebrew/compat/fails_with_llvm.rb index 19338ceb54..d7cc3e7cca 100644 --- a/Library/Homebrew/compat/fails_with_llvm.rb +++ b/Library/Homebrew/compat/fails_with_llvm.rb @@ -9,9 +9,7 @@ class Formula end def self.fails_with_llvm msg=nil, data={} - case msg when Hash then data = msg end - failure = CompilerFailure.new(:llvm) { build(data.delete(:build).to_i) } - @cc_failures ||= Set.new - @cc_failures << failure + data = msg if Hash === msg + fails_with(:llvm) { build(data.delete(:build).to_i) } end end