super/cc: Fix --cc=llvm_clang invoked as clang
Fix the error: brew sh --cc=llvm_clang <<<'clang --version' Failed to execute llvm_clang --version
This commit is contained in:
parent
b38c52f930
commit
5b1213b053
@ -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