aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-26 23:00:38 +0100
committerBaptiste Fontaine2015-12-26 23:00:38 +0100
commit169b8fc03942397bd0f73bb008e915b834605cff (patch)
tree437c7421ae4bc9c0960a63d4e5a0632b729a4990 /Library/Homebrew/compilers.rb
parent48681c3f3a562709dcc1c3256df97ff747fae4d8 (diff)
downloadbrew-169b8fc03942397bd0f73bb008e915b834605cff.tar.bz2
Revert "minor perf improvements"
This reverts commit 16a2a8274a7808e63a6c78475e12a7c0ef5812ef.
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 6ac1809f6..ab710a6d0 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[1]
+ _, major_version = spec.first
name = "gcc-#{major_version}"
# so fails_with :gcc => '4.8' simply marks all 4.8 releases incompatible
version = "#{major_version}.999"