mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

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.
10 lines
156 B
Ruby
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
|