aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorShaun Jackman2017-03-08 17:05:25 -0800
committerShaun Jackman2017-03-08 17:11:23 -0800
commit5b1213b053fecb95c1977beb358cca235704a9f5 (patch)
tree80f78428cce5161449360851d1bcef3d7c5a6352 /Library
parentb38c52f930ad5736518dff54f135674347a4a222 (diff)
downloadbrew-5b1213b053fecb95c1977beb358cca235704a9f5.tar.bz2
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
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/shims/super/cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc
index 1400788ba..d894d3d69 100755
--- a/Library/Homebrew/shims/super/cc
+++ b/Library/Homebrew/shims/super/cc
@@ -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