[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) by miss-islington · Pull Request #145283 · python/cpython · GitHub
Skip to content

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

Merged
freakboy3742 merged 1 commit into
python: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 into
python:3.14from
miss-islington:backport-43fdb70-3.14

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@bedevere-bot

Copy link
Copy Markdown

@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