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.
main
_initialize
1 parent 95d0c4c commit 78a50d9Copy full SHA for 78a50d9
IntegrationTests/Makefile
@@ -8,6 +8,7 @@ TestSuites/.build/$(CONFIGURATION)/%.wasm: FORCE
8
--triple wasm32-unknown-wasi \
9
--configuration $(CONFIGURATION) \
10
-Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor \
11
+ -Xlinker --export=main \
12
$(SWIFT_BUILD_FLAGS)
13
14
dist/%.wasm: TestSuites/.build/$(CONFIGURATION)/%.wasm
IntegrationTests/lib.js
@@ -45,6 +45,8 @@ const startWasiTask = async (wasmPath) => {
45
swift.setInstance(instance);
46
// Start the WebAssembly WASI instance!
47
wasi.start(instance);
48
+ instance.exports._initialize();
49
+ instance.exports.main();
50
};
51
52
module.exports = { startWasiTask };
0 commit comments