Skip to content

[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038)#145283

Merged
freakboy3742 merged 1 commit intopython:3.14from
miss-islington:backport-43fdb70-3.14
Feb 27, 2026
Merged

[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038)#145283
freakboy3742 merged 1 commit intopython:3.14from
miss-islington:backport-43fdb70-3.14

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 26, 2026

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 43fdb70)

Co-authored-by: Hood Chatham roberthoodchatham@gmail.com

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

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
@freakboy3742
Copy link
Contributor

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 280dcd6 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145283%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742 freakboy3742 merged commit a58ea8c into python:3.14 Feb 27, 2026
53 checks passed
@miss-islington miss-islington deleted the backport-43fdb70-3.14 branch February 27, 2026 00:56
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.

4 participants