Allow older non-Apple GCCs to build things

This commit is contained in:
Misty De Meo 2013-10-16 18:43:56 -07:00
parent ba06e2504c
commit 45e7f0ccb0

View File

@ -183,7 +183,7 @@ module SharedEnvExtension
begin begin
gcc_name = 'gcc' + gcc.delete('.') gcc_name = 'gcc' + gcc.delete('.')
gcc = Formulary.factory(gcc_name) gcc = Formulary.factory(gcc_name)
if !gcc.installed? if !gcc.opt_prefix.exist?
raise <<-EOS.undent raise <<-EOS.undent
The requested Homebrew GCC, #{gcc_name}, was not installed. The requested Homebrew GCC, #{gcc_name}, was not installed.
You must: You must: