From aeb33b7d6176403c3ed7ff2ca956d1a5fb03b97c Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Fri, 2 Sep 2022 16:43:02 +0200 Subject: [PATCH] Add NO_EXCEPTIONS on WASM unconditionally DISABLE_EXCEPTION_CATCHING is added unconditionally on WASM. Add NO_EXCEPTIONS for all WASM tests since those are never supported. Change-Id: I2ee10779e7ae0d285494ad650be52dee3099915a Reviewed-by: Alexandru Croitor --- cmake/QtTestHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake index 6cfacc8519e..9ea4b4d669d 100644 --- a/cmake/QtTestHelpers.cmake +++ b/cmake/QtTestHelpers.cmake @@ -217,7 +217,7 @@ function(qt_internal_prepare_test_target_flags version_arg exceptions_text gui_t # Qt modules get compiled without exceptions enabled by default. # However, testcases should be still built with exceptions. set(${exceptions_text} "EXCEPTIONS" PARENT_SCOPE) - if (${arg_NO_EXCEPTIONS}) + if (${arg_NO_EXCEPTIONS} OR WASM) set(${exceptions_text} "" PARENT_SCOPE) endif()