aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2013-03-13 02:07:01 -0500
committerJack Nagel2013-03-16 13:05:02 -0500
commit6ab348ea0af825ff1df82b2153fb9ddf36df017b (patch)
treeb7a483a38caa1a87ee34cf79db479a0fd95c46a0 /Library/Homebrew/build.rb
parentaa69b671b347a7b22daa5bbad7d166fdab45e3e1 (diff)
downloadhomebrew-6ab348ea0af825ff1df82b2153fb9ddf36df017b.tar.bz2
Decouple CompilerSelector from ENV
Diffstat (limited to 'Library/Homebrew/build.rb')
-rwxr-xr-xLibrary/Homebrew/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 8d7d553ec..88a216dc2 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -114,7 +114,7 @@ def install f
end
end
- CompilerSelector.new(f).select_compiler if f.fails_with? ENV.compiler
+ ENV.send(CompilerSelector.new(f).compiler) if f.fails_with? ENV.compiler
f.brew do
if ARGV.flag? '--git'