From ba724a2ded9009e08d0602cc90daa40c67b3cba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Fri, 3 Mar 2023 15:46:04 +0100 Subject: wasm: set stack size to 5MB again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recent Emscripten 3.1.27 reduces the stack size to 64KB, which is way to small for Qt-based applications. Restore the previous stack size (5 MB) by setting STACK_SIZE. Change-Id: I6c25e31b32dc1d551fa423655fcef4891830bcd1 Reviewed-by: Piotr WierciƄski Reviewed-by: Lorn Potter --- mkspecs/common/wasm/wasm.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mkspecs') diff --git a/mkspecs/common/wasm/wasm.conf b/mkspecs/common/wasm/wasm.conf index 6fb1fb6ea3..b67d721352 100644 --- a/mkspecs/common/wasm/wasm.conf +++ b/mkspecs/common/wasm/wasm.conf @@ -36,7 +36,8 @@ EMCC_COMMON_LFLAGS += \ -s FETCH=1 \ -s MODULARIZE=1 \ -s EXPORT_NAME=createQtAppInstance \ - -s WASM_BIGINT=1 + -s WASM_BIGINT=1 \ + -s STACK_SIZE=5MB # The -s arguments can also be used with release builds, # but are here in debug for clarity. -- cgit v1.2.3