wasm: make sure bind is compiler argument

Fixes: QTBUG-93713
Change-Id: I027caccb5c37bab529c80efac0b575a363be5f89
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Lorn Potter 2021-05-13 10:37:11 +10:00
parent c8f380bd13
commit 7c4363ba4c

View File

@ -7,6 +7,7 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
"SHELL:-s USE_WEBGL2=1"
"--bind"
"SHELL:-s FETCH=1")
target_compile_options("${wasmTarget}" INTERFACE --bind)
# Hardcode wasm memory size. Emscripten does not currently support memory growth
# (ALLOW_MEMORY_GROWTH) in pthreads mode, and requires specifying the memory size