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>
This commit is contained in:
Lorn Potter 2022-05-30 06:56:32 +10:00
parent 003538a4f3
commit acfcd1e61f

View File

@ -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().