2023年11月30日 星期四

Detect Apple Silicon from command line even under Rosetta

 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 ProApple M2Apple M2 Max etc.!


from: https://stackoverflow.com/questions/65259300/detect-apple-silicon-from-command-line

沒有留言:

wibiya widget