brew/Library/Homebrew/extend/os/linux/development_tools.rb
2019-04-20 13:27:36 +09:00

20 lines
398 B
Ruby

# frozen_string_literal: true
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