Mike McQuaid 28fa8a7c97
version: add CPU tests.
Add a new API inspired by discussion in
https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given
CPU option is supported by a version of macOS.
2019-01-28 19:31:21 +00:00

10 lines
156 B
Ruby

module Hardware
def self.oldest_cpu(version = MacOS.version)
if version >= :mojave
:nehalem
else
generic_oldest_cpu
end
end
end