aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2015-09-12 11:47:14 -0700
committerMisty De Meo2015-09-12 11:47:14 -0700
commit3bc2ff8e201b3f64c8431b5dc1eb5a49c05b864d (patch)
treea5569b289df14cb63661513de9f12bc8024a24f6 /Library
parente6f260de278b55940a300a3b1536ff45b4a5755f (diff)
downloadbrew-3bc2ff8e201b3f64c8431b5dc1eb5a49c05b864d.tar.bz2
Accept "gcc" for --cc=gcc-5 even if not installed
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)