Skip to content

Improve SSE/AVX detection on arm and when cross-compiling #6264

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented Apr 7, 2025

Change check_cxx_source_runs to check_cxx_source_compiles because running the code does not provide any additional information, and is a problem when cross-compiling. When we know that we compile for arm, we set PCL_ENABLE_SSE and PCL_ENABLE_AVX to OFF to skip the checks completely.

Follow-up on #6261
Fixes #5843
Fixes #6151

Change check_cxx_source_runs to check_cxx_source_compiles because running the code does not provide any additional information, and is a problem when cross-compiling.
When we know that we compile for arm, we set PCL_ENABLE_SSE and PCL_ENABLE_AVX to OFF to skip the checks completely.
@mvieth mvieth added module: cmake changelog: fix Meta-information for changelog generation labels Apr 7, 2025
@mvieth mvieth merged commit 39669c0 into PointCloudLibrary:master Apr 8, 2025
13 checks passed
@mvieth mvieth deleted the arm_sse_avx branch April 8, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: cmake
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PCL cmake fails when cross-compiling for Android Unable to compile for arm64 iOS
2 participants