Merge pull request #2298 from sjackman/super-cc-llvm_clang

super/cc: Fix --cc=llvm_clang invoked as clang
This commit is contained in:
Mike McQuaid 2017-03-10 17:48:50 +00:00 committed by GitHub
commit 0cff5999ee

View File

@ -72,7 +72,11 @@ class Cmd
else
# Note that this is a universal fallback, so that we'll always invoke
# HOMEBREW_CC regardless of what name under which the tool was invoked.
ENV["HOMEBREW_CC"]
if ENV["HOMEBREW_CC"] == "llvm_clang"
"#{ENV["HOMEBREW_PREFIX"]}/opt/llvm/bin/clang"
else
ENV["HOMEBREW_CC"]
end
end
end