Skip to content

Conversation

aminya
Copy link
Collaborator

@aminya aminya commented Apr 5, 2025

This adds support for cross-compilation to cmake-ts. The cross-compile is automatically detected if a build with a different OS or architecture is requested.

  • cross-linux-arm64-node-release on linux x64 will result in a cross-compilation

To explicitly indicate cross-compilation, prefix the config name with cross-:

  • cross-linux-arm64-node-release
  • cross-darwin-x64-electron-relwithdebinfo
  • cross-win32-ia32-node-release

The compilers on the host need to support cross-compilation. Cmake-ts sets the correct target values for CMake, and the build system needs to be set up for that.

zeromq/zeromq.js#693

@aminya aminya merged commit 27e50c0 into master Apr 7, 2025
4 checks passed
@aminya aminya deleted the cross-compile branch April 13, 2025 07:08
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.

1 participant