Fix wasmtime_linker_new call to pass in allow_shadowing argument.

This commit is contained in:
Peter Huene
2020-03-25 22:50:14 -07:00
parent 7e3710ad86
commit 64be4a30ae

View File

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