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,9 +72,13 @@ 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.
|
||||
if ENV["HOMEBREW_CC"] == "llvm_clang"
|
||||
"#{ENV["HOMEBREW_PREFIX"]}/opt/llvm/bin/clang"
|
||||
else
|
||||
ENV["HOMEBREW_CC"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def args
|
||||
if @args.length == 1 && @args[0] == "-v"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user