Skip to content
This repository was archived by the owner on Jun 21, 2026. It is now read-only.

Fixes for build errors when using CMake -G Xcode#1320

Open
geraintluff wants to merge 1 commit into
sfztools:developfrom
geraintluff:cmake-xcode-fix
Open

Fixes for build errors when using CMake -G Xcode#1320
geraintluff wants to merge 1 commit into
sfztools:developfrom
geraintluff:cmake-xcode-fix

Conversation

@geraintluff

Copy link
Copy Markdown

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.

@essej

essej commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants