From 1e00ddc2cb239b0f4bd17dd95b49908ad8c3aca3 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Thu, 1 Sep 2022 12:07:06 +0200 Subject: [PATCH] Do not query for the nonexistent QT_FEATURE_exceptions feature The feature does not exist. Do not query for it and assume it's always off for the purpose of WASM build. Change-Id: I7e76242c9b3423bfe16872f668c60dae2e74fabe Reviewed-by: Alexandru Croitor --- cmake/QtWasmHelpers.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/QtWasmHelpers.cmake b/cmake/QtWasmHelpers.cmake index b1d0c5e877b..98d10920246 100644 --- a/cmake/QtWasmHelpers.cmake +++ b/cmake/QtWasmHelpers.cmake @@ -26,11 +26,7 @@ function (qt_internal_setup_wasm_target_properties wasmTarget) target_compile_options("${wasmTarget}" INTERFACE -O2 -msimd128 -msse -msse2) endif() - set(disable_exceptions_catching 1) - if (QT_FEATURE_exceptions) - set(disable_exceptions_catching 0) - endif() - target_link_options("${wasmTarget}" INTERFACE "SHELL:-s DISABLE_EXCEPTION_CATCHING=${disable_exceptions_catching}") + target_link_options("${wasmTarget}" INTERFACE "SHELL:-s DISABLE_EXCEPTION_CATCHING=1") if (QT_FEATURE_thread) target_compile_options("${wasmTarget}" INTERFACE "SHELL:-pthread")