From e18faa7557a26b4d6deedbbfc7fd07ba5df70052 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 29 Jul 2014 19:30:09 -0700 Subject: [PATCH] --cc=: make GNU_GCC checks stricter Fixes Homebrew/homebrew#30668 --- Library/Homebrew/compilers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)