Merge pull request #10092 from jonchang/big-sur-processors

hardware: optimize Big Sur bottles for Ivy Bridge
This commit is contained in:
Mike McQuaid 2020-12-23 09:29:16 +00:00 committed by GitHub
commit 379371ffa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,8 @@ module Hardware
def self.oldest_cpu(version = MacOS.version)
if CPU.arch == :arm64
:arm_vortex_tempest
elsif version >= :big_sur
:ivybridge
elsif version >= :mojave
:nehalem
else

View File

@ -26,8 +26,9 @@ module Hardware
def optimization_flags
@optimization_flags ||= {
native: arch_flag("native"),
nehalem: "-march=nehalem",
ivybridge: "-march=ivybridge",
sandybridge: "-march=sandybridge",
nehalem: "-march=nehalem",
core2: "-march=core2",
core: "-march=prescott",
arm_vortex_tempest: "",