diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 2d9bb908fa..eb861f38ac 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -1,6 +1,6 @@ module CompilerConstants GNU_GCC_VERSIONS = 3..9 - GNU_GCC_REGEXP = /gcc-(4\.[3-9])/ + GNU_GCC_REGEXP = /^gcc-(4\.[3-9])$/ end class Compiler < Struct.new(:name, :version, :priority)