mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
18 lines
375 B
Ruby
18 lines
375 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
module OS
|
|
module Mac
|
|
module Cleanup
|
|
sig { returns(T::Boolean) }
|
|
def use_system_ruby?
|
|
return false if Homebrew::EnvConfig.force_vendor_ruby?
|
|
|
|
::Homebrew::EnvConfig.developer? && ENV["HOMEBREW_USE_RUBY_FROM_PATH"].present?
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Homebrew::Cleanup.prepend(OS::Mac::Cleanup)
|