aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 01a7caafd..a828d391f 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -105,9 +105,7 @@ module SharedEnvExtension
:clang
elsif self['HOMEBREW_CC']
cc = COMPLER_ALIASES.fetch(self['HOMEBREW_CC'], self['HOMEBREW_CC'])
- COMPILER_SYMBOL_MAP.fetch(cc) do |invalid|
- MacOS.default_compiler
- end
+ COMPILER_SYMBOL_MAP.fetch(cc) { MacOS.default_compiler }
else
MacOS.default_compiler
end