hardware: rename rosetta method.
This commit is contained in:
parent
d9135c5a57
commit
74d3f0b153
@ -67,7 +67,7 @@ module Hardware
|
|||||||
# Apple Silicon Mac. This can be detected via seeing if there's a
|
# Apple Silicon Mac. This can be detected via seeing if there's a
|
||||||
# conflict between what `uname` report and the underlying `sysctl` flags,
|
# conflict between what `uname` report and the underlying `sysctl` flags,
|
||||||
# since the `sysctl` flags don't change behaviour under Rosetta.
|
# since the `sysctl` flags don't change behaviour under Rosetta.
|
||||||
def running_under_rosetta?
|
def in_rosetta?
|
||||||
intel? && physical_cpu_arm64?
|
intel? && physical_cpu_arm64?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ module Hardware
|
|||||||
"-march=#{arch}"
|
"-march=#{arch}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def running_under_rosetta?
|
def in_rosetta?
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user