From 41ac416894d4ba811a856d58fc960ef4ee326cc8 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 4 Dec 2019 14:37:13 +0100 Subject: [PATCH] fix(runtime-c-api) Use `get_wasi_version` in non-strict mode. --- lib/runtime-c-api/src/import/wasi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime-c-api/src/import/wasi.rs b/lib/runtime-c-api/src/import/wasi.rs index 2f105b1a1d3..9b63a96a1f6 100644 --- a/lib/runtime-c-api/src/import/wasi.rs +++ b/lib/runtime-c-api/src/import/wasi.rs @@ -117,7 +117,7 @@ pub unsafe extern "C" fn wasmer_wasi_get_version(module: *const wasmer_module_t) let module = &*(module as *const Module); - match wasi::get_wasi_version(module) { + match wasi::get_wasi_version(module, false) { Some(version) => match version { wasi::WasiVersion::Snapshot0 => Version::Snapshot0, wasi::WasiVersion::Snapshot1 => Version::Snapshot1,