brew/Library/Homebrew/extend/os/mac/linkage_checker.rb

19 lines
405 B
Ruby
Raw Normal View History

# typed: strict
2023-11-15 19:52:21 +00:00
# frozen_string_literal: true
2024-09-18 15:33:49 -07:00
module OS
module Mac
module LinkageChecker
private
2023-11-15 19:52:21 +00:00
2024-09-18 15:33:49 -07:00
sig { returns(T::Boolean) }
def system_libraries_exist_in_cache?
# In macOS Big Sur and later, system libraries do not exist on-disk and instead exist in a cache.
MacOS.version >= :big_sur
2024-09-13 12:22:52 -07:00
end
end
2023-11-15 19:52:21 +00:00
end
end
2024-09-05 19:56:32 -07:00
2024-09-18 15:33:49 -07:00
LinkageChecker.prepend(OS::Mac::LinkageChecker)