Merge pull request #10161 from MikeMcQuaid/rosetta-bottles-comment

os/mac/hardware: clarify Rosetta 2 situation with a comment.
This commit is contained in:
Mike McQuaid 2020-12-28 10:38:21 +00:00 committed by GitHub
commit fdb71a5cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,13 @@ module Hardware
def self.oldest_cpu(version = MacOS.version)
if CPU.arch == :arm64
:arm_vortex_tempest
# TODO: this cannot be re-enabled until either Rosetta 2 supports AVX
# instructions in bottles or Homebrew refuses to run under Rosetta 2 (when
# ARM support is sufficiently complete):
# https://github.com/Homebrew/homebrew-core/issues/67713
#
# elsif version >= :big_sur
# :ivybridge
elsif version >= :mojave
:nehalem
else