aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisty De Meo2014-07-29 19:30:09 -0700
committerMisty De Meo2014-07-29 19:31:07 -0700
commite18faa7557a26b4d6deedbbfc7fd07ba5df70052 (patch)
tree147c5e78d0c5dd53526dbf9846d83e252cd26a53
parentc1ba34734db8b98693651300bd19300a90e2ddb8 (diff)
downloadbrew-e18faa7557a26b4d6deedbbfc7fd07ba5df70052.tar.bz2
--cc=: make GNU_GCC checks stricter
Fixes Homebrew/homebrew#30668
-rw-r--r--Library/Homebrew/compilers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index 2d9bb908f..eb861f38a 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)