]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) (#145283)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 27 Feb 2026 00:55:59 +0000 (01:55 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Feb 2026 00:55:59 +0000 (08:55 +0800)
commita58ea8c21239a23b03446aecd030995bbe40b7a7
tree7c895cfe044bd19f8f640025e508a936ddcce991
parentbc6a7a2b0cdc254712171125afd8b4f4817dc0c4
[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) (#145283)

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.
(cherry picked from commit 43fdb7037e76c18d9545ac11b2f1e3e398152ada)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Include/internal/pycore_emscripten_trampoline.h
Include/internal/pycore_runtime_structs.h
Python/emscripten_trampoline.c
configure
configure.ac