Add Wasmtime C API function to control linker shadowing.

This commit is contained in:
Peter Huene
2020-03-26 11:26:04 -07:00
parent 2d43d5a8fa
commit 382f68c620
5 changed files with 25 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ int main() {
// Create our linker which will be linking our modules together, and then add
// our WASI instance to it.
wasmtime_linker_t *linker = wasmtime_linker_new(store, false);
wasmtime_linker_t *linker = wasmtime_linker_new(store);
bool ok = wasmtime_linker_define_wasi(linker, wasi);
assert(ok);