Skip to content

Conversation

@adamant-pwn
Copy link
Contributor

Fix CMake architecture detection for cross-compilation

  • Use CMAKE_SYSTEM_PROCESSOR instead of CMAKE_HOST_SYSTEM_PROCESSOR to correctly detect the target architecture rather than the host
  • Add CMAKE_CROSSCOMPILING check before using -march=native to prevent generating host-specific code when cross-compiling
  • Update status message to display the correct processor information

Fix CMake architecture detection for cross-compilation

- Use CMAKE_SYSTEM_PROCESSOR instead of CMAKE_HOST_SYSTEM_PROCESSOR
  to correctly detect the target architecture rather than the host
- Add CMAKE_CROSSCOMPILING check before using -march=native to prevent
  generating host-specific code when cross-compiling
- Update status message to display the correct processor information
@jermp jermp merged commit cfccdcc into jermp:master Oct 4, 2025
9 checks passed
@jermp
Copy link
Owner

jermp commented Oct 4, 2025

Thanks!

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