Skip to content

macOS: Default to arm64 architecture on Apple Silicon hosts

Brad King requested to merge brad.king/cmake:macos-arm64 into master

Detect arm64 hardware using a method that pierces Rosetta. If CMAKE_OSX_ARCHITECTURES is not set, pass explicit flags to the toolchain to use arm64 instead of letting the toolchain pick.

Fixes: #20989 (closed)

Merge request reports