aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-10-16 18:43:56 -0700
committerMisty De Meo2013-10-16 18:43:56 -0700
commit45e7f0ccb09f29ef4180a66d758e21a6c3c6594f (patch)
tree19a91b07eb1fde43daf82bc42231280bb780fbc6 /Library
parentba06e2504cd9b0d1792c387aae865b144e8a99dc (diff)
downloadbrew-45e7f0ccb09f29ef4180a66d758e21a6c3c6594f.tar.bz2
Allow older non-Apple GCCs to build things
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 2257b8cf7..9e423ffdc 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -183,7 +183,7 @@ module SharedEnvExtension
begin
gcc_name = 'gcc' + gcc.delete('.')
gcc = Formulary.factory(gcc_name)
- if !gcc.installed?
+ if !gcc.opt_prefix.exist?
raise <<-EOS.undent
The requested Homebrew GCC, #{gcc_name}, was not installed.
You must: