https://github.com/python/cpython/commit/066811ed6a36e1e966eab86932dd1b6dda7424ab
commit: 066811ed6a36e1e966eab86932dd1b6dda7424ab
branch: main
author: Hood Chatham <[email protected]>
committer: corona10 <[email protected]>
date: 2026-07-14T16:21:39+02:00
summary:

gh-153313: Work around string decoding bug in emcc 6.0.2 (gh-153698)

files:
M configure
M configure.ac

diff --git a/configure b/configure
index c15bc2867b94d7..c8494891087d04 100755
--- a/configure
+++ b/configure
@@ -9802,6 +9802,7 @@ fi
     as_fn_append LINKFORSHARED " 
-sEXPORTED_FUNCTIONS=_main,_Py_Version,__PyRuntime,_PyGILState_GetThisThreadState,__PyEM_EMSCRIPTEN_TRAMPOLINE_OFFSET"
     as_fn_append LINKFORSHARED " -sSTACK_SIZE=5MB"
         as_fn_append LINKFORSHARED " -sTEXTDECODER=2"
+        as_fn_append LINKFORSHARED " -sGROWABLE_ARRAYBUFFERS=0"
 
     if test "x$enable_wasm_dynamic_linking" = xyes
 then :
diff --git a/configure.ac b/configure.ac
index 2726a835efc544..ad8280349466e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2410,6 +2410,8 @@ AS_CASE([$ac_sys_system],
     AS_VAR_APPEND([LINKFORSHARED], [" -sSTACK_SIZE=5MB"])
     dnl Avoid bugs in JS fallback string decoding path
     AS_VAR_APPEND([LINKFORSHARED], [" -sTEXTDECODER=2"])
+    dnl workaround for emscripten#27241, can remove when we update to 
emscripten 6.0.3
+    AS_VAR_APPEND([LINKFORSHARED], [" -sGROWABLE_ARRAYBUFFERS=0"])
 
     AS_VAR_IF([enable_wasm_dynamic_linking], [yes], [
       AS_VAR_APPEND([LINKFORSHARED], [" -sMAIN_MODULE"])

_______________________________________________
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