Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(cmake): Correctly detect x86 and arm64 Windows #307

Conversation

BurningEnlightenment
Copy link
Collaborator

@oconnor663 I hate to bother you again, but microsoft/vcpkg#31602 revealed that I missed a few CMAKE_SYSTEM_PROCESSOR values for x86 and arm64. Furthermore I added escape hatches just in case that there are even more synonyms for these ISAs. See the commit messages for further details.

I took this as an opportunity to log the active SIMD configuration.

The ISA names communicated by `CMAKE_SYSTEM_PROCESSOR` aren't as much
standardized as one would wish they were. Factor the different names
into lists allowing for simpler checks and future updates.

Add hidden options for enabling SIMD support in case ISA detection
fails. These should only be used to temporarily workarounds until the
ISA name lists has been updated/fixed.
If no SIMD support could be configured we need to inform
`blake3_dispatch.c` about it.
@oconnor663 oconnor663 merged commit 76f9339 into BLAKE3-team:master May 24, 2023
33 checks passed
@oconnor663
Copy link
Member

Thank you for putting all this effort in, and especially for the vcpkg.

@BurningEnlightenment BurningEnlightenment deleted the dev/cmake-isa-detection-take2 branch May 24, 2023 21:52
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.

None yet

2 participants