diff options
| author | Jack Nagel | 2014-02-24 23:26:11 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-02-24 23:26:11 -0500 | 
| commit | c73a88ecc6463d898fc08151ec63d19ab358632b (patch) | |
| tree | 933913b65305ee1bfaa1b830c6a49a5c1587b12e /Library/Homebrew/compat | |
| parent | cf093276f645d73f8f6779c568fad08ce4801758 (diff) | |
| download | homebrew-c73a88ecc6463d898fc08151ec63d19ab358632b.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  | 
