How can I detect Apple M1 chip?

I need to provide different build scripts for Apple Intel and Apple M1. How can I detect M1? Can Sys.isapple() or any other method distinguish them?

Sys.isapple() && Sys.ARCH === :aarch64

4 Likes

Great! Thanks!!