diff options
| author | Mike McQuaid | 2014-05-05 13:38:47 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-05-06 16:45:50 +0100 |
| commit | 5955f2a395cf067edf50346e9375701c537d5616 (patch) | |
| tree | 91cbb0396b99aa6d9eb4e0382be2260e7981a9af /Library/Homebrew | |
| parent | 4f466b6c10bbc35fb1cdef2691b07856ed3d6e9f (diff) | |
| download | brew-5955f2a395cf067edf50346e9375701c537d5616.tar.bz2 | |
os/mac: don't use Formula.factory unnecessarily.
Instead check if the path exists by using opt.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/os/mac.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index b6446ae5c..0cced5f73 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) |
