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
commit63d6f054c41dbab165aad898750adcda2f705f35 (patch)
tree419d1f50c8cf50629d6c22129c8db364159ca251 /Library/Homebrew/compilers.rb
parent9af3917ebf9fcfdad05f5a810815cba9a7df377a (diff)
downloadbrew-63d6f054c41dbab165aad898750adcda2f705f35.tar.bz2
CompilerFailure: don't mutate compiler hashes
Fixes Homebrew/homebrew#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