aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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 7553540c9..875b0e98a 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -248,7 +248,7 @@ module SharedEnvExtension
gcc_version_name = "gcc#{version.delete(".")}"
gcc = Formulary.factory("gcc")
- if gcc.opt_bin.join(name).exist?
+ if gcc.version_suffix == version
gcc
else
Formulary.factory(gcc_version_name)