Skip to content

Conversation

@EduMenges
Copy link
Contributor

This fixes a problem when generating fat builds. Since CMAKE_OSX_ARCHITECTURES is a semicolon separated list, CMake will generate the invalid flag --arch x86_64;arm64, thus failing during compile. However, CMake already adds the correct space separated flags --arch x86_64 --arch arm64, making the whole manual setting redundant and error-prone. APPLE_TARGET_TRIPLE_FLAG also is redundant and can be safely remove, CMake already handles that.

I noticed this problem when trying to compile BLAKE3, due to its ASM usage. Checking the Ninja file revealed the aforementioned arch flags with the semicolon list.

Copy link
Owner

@leetal leetal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@leetal leetal merged commit 21598aa into leetal:master Sep 21, 2025
21 checks passed
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