diff options
| author | Misty De Meo | 2014-04-12 11:28:24 -0700 |
|---|---|---|
| committer | Misty De Meo | 2014-04-12 11:28:24 -0700 |
| commit | 5b64c58e9b36e3c2f02db0aceceae34a8e93e934 (patch) | |
| tree | fd044062bbe053f6984e4bf8d86221ed5ee14e4c /Library/Homebrew | |
| parent | 08c1bb897b755bc24330152badeddf16234495db (diff) | |
| download | homebrew-5b64c58e9b36e3c2f02db0aceceae34a8e93e934.tar.bz2 | |
CompilerFailure: don't mutate compiler hashes
Fixes #28357.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 2 |
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 |
