From 63d6f054c41dbab165aad898750adcda2f705f35 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 12 Apr 2014 11:28:24 -0700 Subject: [PATCH] CompilerFailure: don't mutate compiler hashes Fixes Homebrew/homebrew#28357. --- Library/Homebrew/compilers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 7473f12a7f..d545606afd 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