sfizz icon indicating copy to clipboard operation
sfizz copied to clipboard

Fixes for build errors when using CMake `-G Xcode`

Open geraintluff opened this issue 2 months ago • 1 comments

On Mac, CMake's Makefile generator seems to build everything with dual-architecture. However, the Xcode generator seems to build the architectures individually and then stick them together afterwards.

Since PROJECT_SYSTEM_PROCESSOR will contain both architectures, this always adds x86/x86_64 flags (e.g. -msse2) which cause an error when compiling the Apple Silicon part.

This PR uses Clang's -Xarch_... filters to say those flags are only relevant for certain architectures.

geraintluff avatar Oct 07 '25 21:10 geraintluff

The atomic_queue clang build fix patches are also in there... just thought they should be mentioned too :)

essej avatar Oct 15 '25 20:10 essej