Resolve JSPI-related build problems on shared builds

Added dummy definitions of missing JSPI functions in
qeventdispatcher_wasm.cpp.

Fixes: QTBUG-115505
Change-Id: Ifb63960ef980905834808dddaf399adb2ca843cb
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
Mikolaj Boc 2023-07-25 16:13:39 +02:00
parent 44d3d87930
commit 58b5fb0f99

View File

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