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

Fix build error with GLM_FORCE_INTRINSICS and NEON #1311

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alusch
Copy link

@alusch alusch commented Sep 3, 2024

We have a project using GLM_FORCE_INTRINSICS that builds on Apple ARM-based platforms. When attempting to update GLM, I saw some build breaks because the NEON compute_vec_nequal implementation was missing a template parameter on its call to compute_vec_equal.

I didn't see a test exercising GLM_FORCE_INTRINSICS, so I added core_force_intrinsics that's currently just a copy of core_force_pure but with a different define. I wasn't sure what a good scope for that test would be, so I'm happy to cut it down or otherwise alter it if that's preferred (or refactor to share code between them).

The test did indeed reproduce the build failure, as well as a warning promoted to an error about an unused variable. With these changes, all tests now build and pass on my M1 Mac.

@kevinpruvost
Copy link

much needed !

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