Skip to content

Conversation

geraintluff
Copy link

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
Copy link
Contributor

essej commented Oct 15, 2025

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants