summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2022-05-30 06:56:32 +1000
committerLorn Potter <lorn.potter@gmail.com>2022-06-02 19:11:58 +1000
commitacfcd1e61fffada52fc4ffbeb62449643fb3a41e (patch)
tree418e83d09bf93ae9b691b1ace36a4d036b42ef3e /cmake
parent003538a4f3e6d427bc9d82e90ba3aa7789dce5c9 (diff)
wasm: Replace depreciated --embind compiler argument
As of Emscripten 3.1.3, the --embind compiler argment has been depreciated for -lembind Change-Id: Iac5bc21602f27fda7c1ea6814a1c9525b9a5afab Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtWasmHelpers.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/QtWasmHelpers.cmake b/cmake/QtWasmHelpers.cmake
index 7cdd822606..b7ed8a1582 100644
--- a/cmake/QtWasmHelpers.cmake
+++ b/cmake/QtWasmHelpers.cmake
@@ -6,10 +6,11 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
"SHELL:-s ERROR_ON_UNDEFINED_SYMBOLS=1"
"SHELL:-s EXPORTED_RUNTIME_METHODS=[UTF16ToString,stringToUTF16]"
"SHELL:-s USE_WEBGL2=1"
- "--bind"
"SHELL:-s FETCH=1"
"SHELL:-s WASM_BIGINT=1")
+ target_link_libraries("${wasmTarget}" INTERFACE embind)
+
# Enable MODULARIZE and set EXPORT_NAME, which makes it possible to
# create application instances using a global constructor function,
# e.g. let app_instance = await createQtAppInstance().