wasm: Don't assert on empty getRelocatablePrefix()
Emscripten expects to find shared libraries at the root of the in-memory file system; set prefixPath accordingly. (Emscripten does not always use the file system though, for example when linking the main wasm file). Change-Id: Ia8053274e23f15fb9ea74a6bebf1ed607cc2c2fc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
c10a50ac3c
commit
d4e5898ba0
@ -365,6 +365,11 @@ static QString getRelocatablePrefix(QLibraryInfoPrivate::UsageMode usageMode)
|
||||
const QString prefixDir = QString(libDirCFString) + "/" QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH;
|
||||
|
||||
prefixPath = QDir::cleanPath(prefixDir);
|
||||
#elif defined(Q_OS_WASM)
|
||||
// Emscripten expects to find shared libraries at the root of the in-memory
|
||||
// file system when resolving dependencies for for dlopen() calls. So that's
|
||||
// where libqt6core.so would be.
|
||||
prefixPath = QStringLiteral("/");
|
||||
#elif QT_CONFIG(dlopen)
|
||||
Q_UNUSED(usageMode);
|
||||
Dl_info info;
|
||||
|
Loading…
Reference in New Issue
Block a user