Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hotfix/library_dylink.js
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,10 @@ var LibraryDylink = {
function getExports() {
#if FILESYSTEM
// lookup preloaded cache first
var preloaded = preloadedWasm[libName];
// Also try with .so suffix: pglite's extensionUtils.ts registers the module under the
// name with .so (so the wasm preload plugin's canHandle() fires), but PostgreSQL's
// dlopen() calls us with the name stripped of .so.
var preloaded = preloadedWasm[libName] || preloadedWasm[libName + '.so'];
#if DYLINK_DEBUG
dbg(`checking preloadedWasm: ${libName}: ${preloaded ? 'found' : 'not found'}`);
#endif
Expand Down