From 5955f2a395cf067edf50346e9375701c537d5616 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 5 May 2014 13:38:47 +0100 Subject: [PATCH] os/mac: don't use Formula.factory unnecessarily. Instead check if the path exists by using opt. --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index b6446ae5ce..0cced5f735 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -121,7 +121,7 @@ module OS end def non_apple_gcc_version(cc) - path = Formula.factory("gcc").opt_prefix/"bin/#{cc}" + path = HOMEBREW_PREFIX.join("opt/gcc/bin/#{cc}") path = nil unless path.exist? return unless path ||= locate(cc)