--cc=: make GNU_GCC checks stricter

Fixes Homebrew/homebrew#30668
This commit is contained in:
Misty De Meo 2014-07-29 19:30:09 -07:00
parent c1ba34734d
commit e18faa7557

View File

@ -1,6 +1,6 @@
module CompilerConstants module CompilerConstants
GNU_GCC_VERSIONS = 3..9 GNU_GCC_VERSIONS = 3..9
GNU_GCC_REGEXP = /gcc-(4\.[3-9])/ GNU_GCC_REGEXP = /^gcc-(4\.[3-9])$/
end end
class Compiler < Struct.new(:name, :version, :priority) class Compiler < Struct.new(:name, :version, :priority)