aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index fb42c5e30..0e65301d5 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -56,11 +56,11 @@ class CompilerSelector
end
end
- def select_compiler
+ def compiler
begin
cc = @compilers.pop
end while @f.fails_with?(cc)
- ENV.send(cc.name) unless cc.nil?
+ cc.nil? ? @old_compiler : cc.name
end
private