From 58b5fb0f9944195b0a75b88d8ba952224d342421 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Tue, 25 Jul 2023 16:13:39 +0200 Subject: [PATCH] Resolve JSPI-related build problems on shared builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added dummy definitions of missing JSPI functions in qeventdispatcher_wasm.cpp. Fixes: QTBUG-115505 Change-Id: Ifb63960ef980905834808dddaf399adb2ca843cb Reviewed-by: Piotr WierciƄski Reviewed-by: Lorn Potter --- src/corelib/kernel/qeventdispatcher_wasm.cpp | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/corelib/kernel/qeventdispatcher_wasm.cpp b/src/corelib/kernel/qeventdispatcher_wasm.cpp index d65123af6a0..6674d13c4bf 100644 --- a/src/corelib/kernel/qeventdispatcher_wasm.cpp +++ b/src/corelib/kernel/qeventdispatcher_wasm.cpp @@ -119,6 +119,27 @@ static bool useAsyncify() return false; } +static bool useJspi() +{ + return false; +} + +void qt_jspi_suspend_js() +{ + Q_UNREACHABLE(); +} + +void qt_jspi_resume_js() +{ + Q_UNREACHABLE(); +} + +bool qt_jspi_can_resume_js() +{ + Q_UNREACHABLE(); + return false; +} + void qt_asyncify_suspend_js() { Q_UNREACHABLE();