]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-153313: Work around string decoding bug in emcc 6.0.2 (gh-153698)
authorHood Chatham <roberthoodchatham@gmail.com>
Tue, 14 Jul 2026 14:21:39 +0000 (16:21 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2026 14:21:39 +0000 (16:21 +0200)
configure
configure.ac

index c15bc2867b94d7d665f9e6d642044b0ca4b997a3..c8494891087d045e91005e6595e87663c35ba1d1 100755 (executable)
--- 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 :
index 2726a835efc5449c2ca712308e66b071f45e535f..ad8280349466e06ed76a135cccdbc99fbbca17a1 100644 (file)
@@ -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"])