diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2023-03-03 15:46:04 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2023-03-06 14:06:07 +0000 |
commit | ba724a2ded9009e08d0602cc90daa40c67b3cba1 (patch) | |
tree | 8987b20c62ea59300ea0c7a1f41fd05832763ee2 /mkspecs/common | |
parent | 28d5da386fa94c173de5726bd27319860e26ce96 (diff) |
wasm: set stack size to 5MB again
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 <piotr.wiercinski@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'mkspecs/common')
-rw-r--r-- | mkspecs/common/wasm/wasm.conf | 3 |
1 files changed, 2 insertions, 1 deletions
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. |