We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8b209 commit b81af35Copy full SHA for b81af35
src/tools/wasm-ctor-eval.cpp
@@ -129,6 +129,13 @@ std::vector<std::unique_ptr<Module>> buildStubModules(Module& wasm) {
129
Importable* importable =
130
std::visit([](auto* i) -> Importable* { return i; }, import);
131
132
+ // Ignore WASI functions. They are handled separately in
133
+ // `getImportedFunction`.
134
+ if (std::holds_alternative<Function*>(import) &&
135
+ importable->module.startsWith("wasi_")) {
136
+ return;
137
+ }
138
+
139
auto [it, inserted] = modules.try_emplace(importable->module, nullptr);
140
if (inserted) {
141
it->second = std::make_unique<Module>();
0 commit comments