Anonymous View
Skip to content

gh-151422: Don't link libffi into _ctypes_test.so#151423

Open
hoodmane wants to merge 2 commits into
python:mainfrom
hoodmane:dont-link-libffi-into-ctypes-test
Open

gh-151422: Don't link libffi into _ctypes_test.so#151423
hoodmane wants to merge 2 commits into
python:mainfrom
hoodmane:dont-link-libffi-into-ctypes-test

Conversation

@hoodmane

@hoodmane hoodmane commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Minor build fix. This makes the ctypes tests run on Emscripten.

There is a bug in the Emscripten dynamic loader that caused any dynamic library that links libffi to fail to load. _ctypes_test.so unnecessarily links libffi so it would fail to load and tests that needed it were skipped.

There are two test failures behind that: one involving stack overflows which we have to skip as usual, and one that assumes that the abi for a function that takes a single struct with two doubles is the same as the abi for a function that takes two double arguments. This is not true in webassembly so we skip the test.

@hoodmane hoodmane force-pushed the dont-link-libffi-into-ctypes-test branch from 295fabb to 4fb91c5 Compare June 13, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant