mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142)
- c_longlong and c_longdouble need experimental WASM bigint.
- Skip tests that need threading
- Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
(cherry picked from commit 8625802d85
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
e4d72d1863
commit
4d2c972ff7
9 changed files with 26 additions and 9 deletions
|
@ -1486,10 +1486,10 @@ if test -z "$HOSTRUNNER"
|
|||
then
|
||||
AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
|
||||
[Emscripten/node*], [
|
||||
# bigint for ctypes c_longlong, c_longdouble
|
||||
HOSTRUNNER="node --experimental-wasm-bigint"
|
||||
AS_VAR_IF([enable_wasm_pthreads], [yes], [
|
||||
HOSTRUNNER='node --experimental-wasm-threads --experimental-wasm-bulk-memory'
|
||||
], [
|
||||
HOSTRUNNER='node'
|
||||
HOSTRUNNER="$HOSTRUNNER --experimental-wasm-threads --experimental-wasm-bulk-memory"
|
||||
])
|
||||
],
|
||||
dnl TODO: support other WASI runtimes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue