Skip to content

Commit

Permalink
wasm: Replace depreciated --embind compiler argument
Browse files Browse the repository at this point in the history
As of Emscripten 3.1.3, the --embind compiler argment has been
depreciated for -lembind

Change-Id: Iac5bc21602f27fda7c1ea6814a1c9525b9a5afab
Reviewed-by: Morten Johan Sørvig <[email protected]>
  • Loading branch information
lpotter committed Jun 2, 2022
1 parent 003538a commit acfcd1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/QtWasmHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit acfcd1e

Please sign in to comment.