diff options
| author | Jack Nagel | 2014-02-24 23:26:11 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-24 23:26:11 -0500 |
| commit | 403fdc7523b5e1d75916f5374503b8aee3abfcf4 (patch) | |
| tree | e2a0c3cf763c1f333e6cd6679076403fb76d6da9 /Library/Homebrew/compat | |
| parent | 03811e6423879162225a6912cbfbda535d72067f (diff) | |
| download | brew-403fdc7523b5e1d75916f5374503b8aee3abfcf4.tar.bz2 | |
Implement fails_with_llvm compat method in terms of fails_with
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/fails_with_llvm.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/compat/fails_with_llvm.rb b/Library/Homebrew/compat/fails_with_llvm.rb index 19338ceb5..d7cc3e7cc 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 |
