summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2019-09-07 07:06:30 +1000
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-03-26 22:36:36 +0000
commit643410136004825cb395e342f5c4ff90e85de4fe (patch)
tree9f0cab449b6b1059e7b132d9a0c3ca5ea42c5c13 /mkspecs
parent96de59d7c1068022dbb590d7abbdcf6eaf5d0566 (diff)
wasm: refactor network to use fetch API
This has better support for threaded use, and gets rid of bind use. This requires emscripten 1.38.37 and above Task-number: QTBUG-76891 Change-Id: Ic30a6820c2ce945c314751c06cfc356914a71217 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/wasm-emscripten/qmake.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkspecs/wasm-emscripten/qmake.conf b/mkspecs/wasm-emscripten/qmake.conf
index e6a9773482..a1b11e93aa 100644
--- a/mkspecs/wasm-emscripten/qmake.conf
+++ b/mkspecs/wasm-emscripten/qmake.conf
@@ -37,7 +37,8 @@ EMCC_COMMON_LFLAGS += \
-s NO_EXIT_RUNTIME=0 \
-s ERROR_ON_UNDEFINED_SYMBOLS=1 \
-s EXTRA_EXPORTED_RUNTIME_METHODS=[\"UTF16ToString\",\"stringToUTF16\"] \
- --bind
+ --bind \
+ -s FETCH=1
# The -s arguments can also be used with release builds,
# but are here in debug for clarity.