mirror of
https://github.com/gosticks/brew.git
synced 2026-09-01 14:30:27 +00:00
18 lines
367 B
Ruby
18 lines
367 B
Ruby
class DevelopmentTools
|
|
class << self
|
|
def locate(tool)
|
|
(@locate ||= {}).fetch(tool) do |key|
|
|
@locate[key] = if (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
|
path
|
|
elsif File.executable?(path = "/usr/bin/#{tool}")
|
|
Pathname.new path
|
|
end
|
|
end
|
|
end
|
|
|
|
def default_compiler
|
|
:gcc
|
|
end
|
|
end
|
|
end
|