scikit-build-core icon indicating copy to clipboard operation
scikit-build-core copied to clipboard

feat: Better support for cross-compilation

Open LecrisUT opened this issue 10 months ago • 0 comments

Mostly the cross-compilation works out-of-the-box with crossenv + CMAKE_TOOLCHAIN_FILE. There is only one adjustment needed for Python_ROOT_DIR to point to sys.base_exec_prefix, the rest is documentation of the change and adding support for CMAKE_TOOLCHAIN_FILE where needed.

I presume that under PEP720 the same workflow will be valid, primarily sys.base_exec_prefix would point to the target's implementation, otherwise the document should be clarified on what to expect. I have raised the issue for further clarification ^1

LecrisUT avatar Apr 22 '25 15:04 LecrisUT