aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 26649d7be..23e146d00 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -44,13 +44,13 @@ class Cmd
@tool ||= case @arg0
when 'ld' then 'ld'
when 'cpp' then 'cpp'
- when /\w\+\+(-\d\.\d)?$/
+ when /\w\+\+(-\d(\.\d)?)?$/
case ENV['HOMEBREW_CC']
when /clang/
'clang++'
when /llvm-gcc/
'llvm-g++-4.2'
- when /gcc(-\d\.\d)?$/
+ when /gcc(-\d(\.\d)?)?$/
'g++' + $1.to_s
end
else