https://github.com/python/cpython/commit/05eac890c2f2846870daf2a1bfe726547856abe3
commit: 05eac890c2f2846870daf2a1bfe726547856abe3
branch: main
author: Hood Chatham <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-08-26T07:50:13+10:00
summary:

gh-156243: Indicate that emscripten_runtime depends on stringToNewUTF8 (#156335)

Add an explicit declaration an Emscripten dependency on the stringToNewUTF8
library function.

files:
M Python/sysmodule.c

diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 5051dfc3ec0f861..10087c1ccaac17d 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -3868,6 +3868,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") {

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to