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: support cross-compiles with classic Python #3959

Merged
merged 1 commit into from
May 20, 2022

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented May 19, 2022

Signed-off-by: Henry Schreiner [email protected]

Description

Drop the bit check for cross compiles (like for Pyodide). Also allow found values to be overridden if needed for future proofing cross compiles. See https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/pybind11/patches/0001-no-bitsize-check.patch. I believe FindPython already supports cross-compiling.

Suggested changelog entry:

* Drop the bitness check on cross compiles (like targeting WebAssembly via Emscripten)

@henryiii henryiii marked this pull request as ready for review May 19, 2022 04:04
@henryiii
Copy link
Collaborator Author

Looks like FindPython has the same check: https://github.com/Kitware/CMake/blob/07d351b535dde56a89aa6786a3f0701e3b159d44/Modules/FindPython/Support.cmake#L815-L817 so I'm pretty happy with it, though I'm having a different error later on for what I'm doing.

@henryiii henryiii merged commit 918d448 into pybind:master May 20, 2022
@henryiii henryiii deleted the henryiii/fix/emscripten branch May 20, 2022 13:38
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label May 20, 2022
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Jul 7, 2022
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