From a34195508aeebf0f0982538cdf3852f149f051ab Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 3 Jun 2025 15:03:01 +0200 Subject: [PATCH] Fix WASM build for the recent qtestcrashhandler changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Amends commit fddb6fceaa28df2a24f7bdd216792985bf8141d1 - the code in qtestcrashhandler_unix.cpp is written to compile for WASM, and some declarations in the _p.h aren't excluded on WASM, so the exclusion of the .cpp when WASM lacks threads lead to linker errors. Pick-to: 6.10 Change-Id: Idb941643302ed5a4c084d0fd2b4dfc07a44122e3 Reviewed-by: Morten Johan Sørvig Reviewed-by: Thiago Macieira Reviewed-by: Piotr Wierciński --- src/testlib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testlib/CMakeLists.txt b/src/testlib/CMakeLists.txt index 26ed03d81a4..0a50725e238 100644 --- a/src/testlib/CMakeLists.txt +++ b/src/testlib/CMakeLists.txt @@ -148,7 +148,7 @@ qt_internal_extend_target(Test CONDITION MACOS ${FWIOKit} ) -qt_internal_extend_target(Test CONDITION UNIX AND (NOT WASM OR QT_FEATURE_thread) +qt_internal_extend_target(Test CONDITION UNIX SOURCES qtestcrashhandler_unix.cpp )