From acfcd1e61fffada52fc4ffbeb62449643fb3a41e Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Mon, 30 May 2022 06:56:32 +1000 Subject: wasm: Replace depreciated --embind compiler argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As of Emscripten 3.1.3, the --embind compiler argment has been depreciated for -lembind Change-Id: Iac5bc21602f27fda7c1ea6814a1c9525b9a5afab Reviewed-by: Morten Johan Sørvig --- cmake/QtWasmHelpers.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake/QtWasmHelpers.cmake') 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(). -- cgit v1.2.3