diff options
| author | Mike McQuaid | 2014-05-05 13:38:47 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-05-06 16:45:50 +0100 |
| commit | d970b87c15ff1a346e15800d93e7862f4f8bdca7 (patch) | |
| tree | 9d23e9deb5da357e64e5287196032f2e24af3df4 /Library/Homebrew/os | |
| parent | 9cf103506569b631101e3345e19f95c6f5af0677 (diff) | |
| download | homebrew-d970b87c15ff1a346e15800d93e7862f4f8bdca7.tar.bz2 | |
os/mac: don't use Formula.factory unnecessarily.
Instead check if the path exists by using opt.
Diffstat (limited to 'Library/Homebrew/os')
| -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) |
