Skip to content

PCH: Use per-arch .pch files only when building multiple Apple architectures

Brad King requested to merge brad.king/cmake:pch-single-arch into master

Since !4561 (merged) we use per-arch .pch files even when compiling for just the host architecture on macOS arm64. This breaks with compilers that do not support -Xarch_ flags, such as GCC. Avoid using per-arch .pch files in single-architecture builds.

Fixes: #25514 (closed)
Issue: #20497 (closed)

Merge request reports