Skip to content
Snippets Groups Projects
Commit 5955f2a3 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

os/mac: don't use Formula.factory unnecessarily.

Instead check if the path exists by using opt.
parent 4f466b6c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment