From 20d544085ae85853d7f9c12b03737b4d6abb3a7f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 22 Jun 2014 18:43:01 -0500 Subject: [PATCH] Use a more descriptive variable name --- Library/Homebrew/extend/ENV/shared.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 57efff8fab..8208d185d1 100644 --- a/Library/Homebrew/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/ENV/shared.rb @@ -115,9 +115,9 @@ module SharedEnvExtension COMPILER_SYMBOL_MAP.invert.fetch(compiler, compiler) end - COMPILERS.each do |x| - define_method x do - @compiler = x + COMPILERS.each do |compiler| + define_method(compiler) do + @compiler = compiler self.cc = determine_cc self.cxx = determine_cxx end