Remove HOMEBREW_CC warning from ENV.compiler

ENV.compiler is called outside setting up the build environment, where
values unsupported for user input might have been specified - for
example, GNU GCC executables.
This commit is contained in:
Misty De Meo 2013-09-01 14:41:21 -07:00
parent 0e06e9e4b9
commit 96b50e013e

View File

@ -104,7 +104,6 @@ module SharedEnvExtension
elsif self['HOMEBREW_CC'] elsif self['HOMEBREW_CC']
cc = COMPLER_ALIASES.fetch(self['HOMEBREW_CC'], self['HOMEBREW_CC']) cc = COMPLER_ALIASES.fetch(self['HOMEBREW_CC'], self['HOMEBREW_CC'])
COMPILER_SYMBOL_MAP.fetch(cc) do |invalid| COMPILER_SYMBOL_MAP.fetch(cc) do |invalid|
opoo "Invalid value for HOMEBREW_CC: #{invalid}"
MacOS.default_compiler MacOS.default_compiler
end end
else else