Merge pull request #2298 from sjackman/super-cc-llvm_clang
super/cc: Fix --cc=llvm_clang invoked as clang
This commit is contained in:
commit
0cff5999ee
@ -72,7 +72,11 @@ class Cmd
|
|||||||
else
|
else
|
||||||
# Note that this is a universal fallback, so that we'll always invoke
|
# 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.
|
# 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user