Open gossmer opened 2 years ago
You also need to add in the package defines:
cSettings: [
.define("APPLICATION_EXTENSION_API_ONLY", to: "YES"),
.define("d_m3MaxDuplicateFunctionImpl", to: "10"),
.define("__wasi__", to: "YES"),
.define("d_m3HasWASI", to: "YES")
]
adding extra/wasi_core.h from wasm3 into the Sources/CWasm3 allow for the call to m3_LinkWASI to work and wasi is then available in a wasm module.