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
gh-84461: Fix ctypes and test_ctypes on Emscripten #94142
Conversation
Increased to 1000 after: emscripten-core/emscripten#16658 |
I'm using emcc 3.1.12 and libffi-emscripten 2022-04-03. Tests are failing for any value > 122. What am I missing? |
Try the following: make a file called
then invoke emcc as follows:
then After
After |
Your example script works fine with my EMSDK. However libffi still does not accept more than 122 arguments:
After rebuilding with
|
Oops. Will fix! |
Okay I made a commit increasing |
- c_longlong and c_longdouble need experimental WASM bigint. - Skip tests that need threading - Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. According to tests 122 args is the maximum value.
Not it works as expected, thanks! |
Thanks @tiran for the PR |
) - 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 8625802d854ec0152177a6ff0ac092e0e3ff98a5) Co-authored-by: Christian Heimes <christian@python.org>
GH-94211 is a backport of this pull request to the 3.11 branch. |
- 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 8625802) Co-authored-by: Christian Heimes <christian@python.org>
CTYPES_MAX_ARGCOUNT
for Emscripten. According to tests 122args is the maximum value.