Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/extend/os/mac/hardware.rb

14 lines
242 B
Ruby
Raw Normal View History

Add frozen_string_literal to all files.
2019-04-19 15:38:03 +09:00
# frozen_string_literal: true
hardware: use Nehalem flags on >= Sierra. See https://en.wikipedia.org/wiki/MacOS_Sierra#System_requirements.
2018-12-20 20:10:54 +00:00
module Hardware
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
def self.oldest_cpu(version = MacOS.version)
Make `Hardware.oldest_cpu` depend on architecture Starting with Xcode 12 Beta 2, builds that used to work on Apple Silicon now break due to `Hardware#oldest_cpu` returning `:nehalem` [1]. This commit is the first in a series of improvements to `Hardware#oldest_cpu`. It resolves the Xcode 12 Beta 2 issue for now. [1]: https://github.com/Homebrew/brew/issues/7857#issuecomment-655536261
2020-07-08 20:53:10 +02:00
if CPU.arch == :arm64
:arm_vortex_tempest
elsif version >= :mojave
hardware: use Nehalem flags on >= Sierra. See https://en.wikipedia.org/wiki/MacOS_Sierra#System_requirements.
2018-12-20 20:10:54 +00:00
:nehalem
else
generic_oldest_cpu
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 95ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API