aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
authorMisty De Meo2014-04-12 11:28:24 -0700
committerMisty De Meo2014-04-12 11:28:24 -0700
commit5b64c58e9b36e3c2f02db0aceceae34a8e93e934 (patch)
treefd044062bbe053f6984e4bf8d86221ed5ee14e4c /Library/Homebrew/compilers.rb
parent08c1bb897b755bc24330152badeddf16234495db (diff)
downloadhomebrew-5b64c58e9b36e3c2f02db0aceceae34a8e93e934.tar.bz2
CompilerFailure: don't mutate compiler hashes
Fixes #28357.
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 7473f12a7..d545606af 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -61,7 +61,7 @@ class CompilerFailure
# Non-Apple compilers are in the format fails_with compiler => version
if compiler.is_a? Hash
# currently the only compiler for this case is GCC
- _, @major_version = compiler.shift
+ _, @major_version = compiler.first
@compiler = 'gcc-' + @major_version
else
@compiler = compiler