diff options
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 6330db283..7503f1d77 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -49,7 +49,7 @@ class CompilerFailure instance_eval(&block) if block_given? end - def ===(compiler) + def fails_with?(compiler) name == compiler.name && version >= compiler.version end @@ -127,7 +127,7 @@ class CompilerSelector end def fails_with?(compiler) - failures.any? { |failure| failure === compiler } + failures.any? { |failure| failure.fails_with?(compiler) } end def compiler_version(name) |
