diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 7f18b466ad..a67ba17eb0 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -64,7 +64,7 @@ class Cmd @tool ||= case @arg0 when 'ld' then 'ld' when 'cpp' then 'cpp' - when /\w\+\+$/ + when /\w\+\+(-\d\.\d)?$/ case ENV['HOMEBREW_CC'] when /clang/ 'clang++'