aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index b9fb9e199..ad6c6b4c1 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -48,6 +48,12 @@ class CompilerFailure
instance_eval(&block) if block_given?
end
+ def ===(compiler)
+ name == compiler.name &&
+ major_version == compiler.major_version &&
+ version >= (compiler.version || 0)
+ end
+
MESSAGES = {
:cxx11 => "This compiler does not support C++11"
}