aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-21 13:33:03 +0100
committerBaptiste Fontaine2015-12-26 22:58:26 +0100
commit48681c3f3a562709dcc1c3256df97ff747fae4d8 (patch)
tree387b66dab7e5c9f96a0a0773511e287638aa11fa /Library/Homebrew/compilers.rb
parentd09698f19f3a57ce00baddc6142aa484d7d908f6 (diff)
downloadbrew-48681c3f3a562709dcc1c3256df97ff747fae4d8.tar.bz2
minor perf improvements
Closes Homebrew/homebrew#47224. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index ab710a6d0..6ac1809f6 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -33,7 +33,7 @@ class CompilerFailure
def self.create(spec, &block)
# Non-Apple compilers are in the format fails_with compiler => version
if spec.is_a?(Hash)
- _, major_version = spec.first
+ major_version = spec.first[1]
name = "gcc-#{major_version}"
# so fails_with :gcc => '4.8' simply marks all 4.8 releases incompatible
version = "#{major_version}.999"