Skip to content

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