Fix WASM build for the recent qtestcrashhandler changes

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 <morten.sorvig@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
This commit is contained in:
Edward Welbourne 2025-06-03 15:03:01 +02:00
parent 9be6e51a50
commit a34195508a

View File

@ -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
)