diff options
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 6 |
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 |
