macOS: Diagnose multiple CMAKE_OSX_ARCHITECTURES with single-arch compilers
If one configures with -DCMAKE_OSX_ARCHITECTUERS=arm64;x86_64
using gcc
, we pass -arch arm64 -arch x86_64
to the compiler, and gcc just warns and uses the latter. The resulting binaries are not universal. We should consider diagnosing this early.