summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/QtWasmHelpers.cmake3
-rw-r--r--mkspecs/common/wasm/wasm.conf3
2 files changed, 4 insertions, 2 deletions
diff --git a/cmake/QtWasmHelpers.cmake b/cmake/QtWasmHelpers.cmake
index 9bd98368f5..29478b33a4 100644
--- a/cmake/QtWasmHelpers.cmake
+++ b/cmake/QtWasmHelpers.cmake
@@ -8,7 +8,8 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
target_link_options("${wasmTarget}" INTERFACE
"SHELL:-s MAX_WEBGL_VERSION=2"
"SHELL:-s FETCH=1"
- "SHELL:-s WASM_BIGINT=1")
+ "SHELL:-s WASM_BIGINT=1"
+ "SHELL:-s STACK_SIZE=5MB")
target_link_libraries("${wasmTarget}" INTERFACE embind)
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.