I found that sysctl -n machdep.cpu.brand_string
reported Apple M1
even though the process was run under Rosetta.
Update: be prepared for Apple M1 Pro
, Apple M2
, Apple M2 Max
etc.!
from: https://stackoverflow.com/questions/65259300/detect-apple-silicon-from-command-line
沒有留言:
張貼留言