From cc89f64161f914d3ab33e49c38cfee4e0cd91004 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 25 Aug 2026 15:50:13 -0600 Subject: [PATCH] gh-156243: Indicate that emscripten_runtime depends on stringToNewUTF8 (GH-156335) Add an explicit declaration an Emscripten dependency on the stringToNewUTF8 library function. (cherry picked from commit 05eac890c2f2846870daf2a1bfe726547856abe3) Co-authored-by: Hood Chatham --- Python/sysmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index aa9ff9e9a455de7..3c184ba4bb7fcdb 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -3898,6 +3898,8 @@ static PyStructSequence_Desc emscripten_info_desc = { 4 }; +EM_JS_DEPS(_Py_emscripten_runtime, "$stringToNewUTF8") + EM_JS(char *, _Py_emscripten_runtime, (void), { var info; if (typeof process === "object") {