From 4516f3e8cc33250bf77707c3ca16d44de8f32a65 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Thu, 14 Nov 2024 13:09:46 +0100 Subject: [PATCH] Put back -sALLOW_MEMORY_GROWTH and -sEXIT_RUNTIME --- configure | 2 ++ configure.ac | 3 +++ 2 files changed, 5 insertions(+) diff --git a/configure b/configure index 796c801ef7c252..5920ca4b1affed 100755 --- a/configure +++ b/configure @@ -9448,6 +9448,8 @@ then : as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD" fi + as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH" + as_fn_append LDFLAGS_NODIST " -sEXIT_RUNTIME" as_fn_append LDFLAGS_NODIST " --pre-js=\$(srcdir)/Tools/wasm/emscripten/node_pre.js" WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map" diff --git a/configure.ac b/configure.ac index 7f8dd0903eb8d0..3b423475272aa3 100644 --- a/configure.ac +++ b/configure.ac @@ -2338,6 +2338,9 @@ AS_CASE([$ac_sys_system], AS_VAR_APPEND([LDFLAGS_NODIST], [" -sUSE_PTHREADS"]) AS_VAR_APPEND([LINKFORSHARED], [" -sPROXY_TO_PTHREAD"]) ]) + AS_VAR_APPEND([LDFLAGS_NODIST], [" -sALLOW_MEMORY_GROWTH"]) + dnl not completely sure whether or not we want -sEXIT_RUNTIME, keeping it for now. + AS_VAR_APPEND([LDFLAGS_NODIST], [" -sEXIT_RUNTIME"]) AS_VAR_APPEND([LDFLAGS_NODIST], [" --pre-js=\$(srcdir)/Tools/wasm/emscripten/node_pre.js"]) WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map"