summaryrefslogtreecommitdiffstats
path: root/mkspecs/wasm-emscripten/qmake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/wasm-emscripten/qmake.conf')
-rw-r--r--mkspecs/wasm-emscripten/qmake.conf7
1 files changed, 3 insertions, 4 deletions
diff --git a/mkspecs/wasm-emscripten/qmake.conf b/mkspecs/wasm-emscripten/qmake.conf
index 9e5a223d1b..6bb99d49b6 100644
--- a/mkspecs/wasm-emscripten/qmake.conf
+++ b/mkspecs/wasm-emscripten/qmake.conf
@@ -22,17 +22,16 @@ load(emcc_ver)
# (with "wasm validation error: too many locals" type errors) if optimizations
# are omitted. Enable optimizations also for debug builds.
QMAKE_LFLAGS_DEBUG += -Os
-
- # Declare all async functions
- QMAKE_LFLAGS += -s \'ASYNCIFY_IMPORTS=[\"qt_asyncify_suspend_js\", \"qt_asyncify_resume_js\", \"emscripten_sleep\"]\'
}
}
+# Declare async functions
+QMAKE_LFLAGS += -s \'ASYNCIFY_IMPORTS=qt_asyncify_suspend_js,qt_asyncify_resume_js\'
+
EMCC_COMMON_LFLAGS += \
-s WASM=1 \
-s MAX_WEBGL_VERSION=2 \
-s ERROR_ON_UNDEFINED_SYMBOLS=1 \
- -s EXPORTED_RUNTIME_METHODS=UTF16ToString,stringToUTF16 \
--bind \
-s FETCH=1 \
-s MODULARIZE=1 \