aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 6907406b5..fcad7ed54 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -745,9 +745,9 @@ class Formula
# fails_with :gcc => '4.8' do
# version '4.8.1'
# end
- def fails_with compiler, &block
+ def fails_with spec, &block
@cc_failures ||= Set.new
- @cc_failures << CompilerFailure.new(compiler, &block)
+ @cc_failures << CompilerFailure.create(spec, &block)
end
def needs *standards