From 84feb95c76b7be85ad40e57e3313003e754d83e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 1 Nov 2022 11:38:31 +0100 Subject: [PATCH] Fix bug in wasmer_module_new --- lib/cli/src/commands/create_exe.rs | 2 +- lib/cli/src/commands/wasmer_static_create_exe_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index ad8d94c9bcf..d60bf704eb1 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1720,7 +1720,7 @@ fn try_autoinstall_zig() -> Option { } #[cfg(feature = "http")] -fn install_zig(target_targz_path: &PathBuf) -> Option { +fn install_zig(target_targz_path: &Path) -> Option { let resp = reqwest::blocking::get("https://ziglang.org/download/index.json"); let resp = resp.ok()?; let resp = resp.json::(); diff --git a/lib/cli/src/commands/wasmer_static_create_exe_main.c b/lib/cli/src/commands/wasmer_static_create_exe_main.c index 67507005e1f..8660517107e 100644 --- a/lib/cli/src/commands/wasmer_static_create_exe_main.c +++ b/lib/cli/src/commands/wasmer_static_create_exe_main.c @@ -14,7 +14,7 @@ extern size_t VOLUMES_LENGTH asm("VOLUMES_LENGTH"); extern char VOLUMES_DATA asm("VOLUMES_DATA"); #endif -extern wasm_module_t* wasmer_module_new(wasm_store_t* store) asm("wasmer_module_new"); +extern wasm_module_t* wasmer_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_module_new"); extern wasm_module_t* wasmer_static_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_static_module_new");