]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (#145038)
authorHood Chatham <roberthoodchatham@gmail.com>
Wed, 25 Feb 2026 22:21:05 +0000 (23:21 +0100)
committerGitHub <noreply@github.com>
Wed, 25 Feb 2026 22:21:05 +0000 (06:21 +0800)
commit43fdb7037e76c18d9545ac11b2f1e3e398152ada
tree6a3c3d68b6107e4775d29d4ce60f2eb2f5eb49d8
parent7eb00ad23cf3795c42e9ac0a268387f8d6026ecd
gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (#145038)

This undoes a change made as a part of PR 137470, for compatibility with EMSDK
4.0.19. It adds `emscripten_trampoline` field in `pycore_runtime_structs.h`
and initializes it from JS initialization code with the wasm-gc based trampoline
if possible. Otherwise we fall back to the JS trampoline.
Include/internal/pycore_emscripten_trampoline.h
Include/internal/pycore_runtime_structs.h
Python/emscripten_trampoline.c
configure
configure.ac