Merge pull request #9252 from felixbuenemann/arm64-cpu-detection-tweaks
Better check for Rosetta 2
This commit is contained in:
commit
8992ad9dbb
@ -69,7 +69,7 @@ module Hardware
|
|||||||
# conflict between what `uname` reports and the underlying `sysctl` flags,
|
# conflict between what `uname` reports and the underlying `sysctl` flags,
|
||||||
# since the `sysctl` flags don't change behaviour under Rosetta 2.
|
# since the `sysctl` flags don't change behaviour under Rosetta 2.
|
||||||
def in_rosetta2?
|
def in_rosetta2?
|
||||||
intel? && physical_cpu_arm64?
|
sysctl_bool("sysctl.proc_translated")
|
||||||
end
|
end
|
||||||
|
|
||||||
def features
|
def features
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user