From 6983f0326b09774a2783d17e3866ee8ed97cc9e6 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Wed, 20 Dec 2023 07:43:25 +1000 Subject: [PATCH] wasm: fix single thread build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes linking of apps Change-Id: I9bbec9b63af8ae2801643fe124aeda8b25abeca5 Reviewed-by: Morten Johan Sørvig (cherry picked from commit ae3506d80e11068957af38897e451cddb18bbe70) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 6c4fe5766e26bdedf8085816eeeecaa8f75c3d9c) --- src/corelib/thread/qthread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index 216d783de16..11f8f5cc6dd 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -999,6 +999,10 @@ bool QThread::isInterruptionRequested() const return false; } +void QThread::setTerminationEnabled(bool) +{ +} + // No threads: so we can just use static variables Q_CONSTINIT static QThreadData *data = nullptr;