Merge pull request #4487 from maxim-belkin/handle-cc

cc shim: handle the case when HOMEBREW_CC = cc
This commit is contained in:
Mike McQuaid 2018-07-16 20:34:20 +01:00 committed by GitHub
commit b1a125754f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,8 +79,8 @@ class Cmd
"clang++"
when /llvm-gcc/
"llvm-g++-4.2"
when /gcc(-\d(\.\d)?)?$/
"g++" + $1.to_s
when /(g)?cc(-\d(\.\d)?)?$/
"g++" + $2.to_s
end
else
# Note that this is a universal fallback, so that we'll always invoke