Skip to content

in_exec_wasi: change wasm_runtime_call_wasm to wasm_application_execute_main to support latest version of tinygo #10032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/wasm/flb_wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,7 @@ char *flb_wasm_call_function_format_msgpack(struct flb_wasm *fw, const char *fun
int flb_wasm_call_wasi_main(struct flb_wasm *fw)
{
#if WASM_ENABLE_LIBC_WASI != 0
wasm_function_inst_t func = NULL;

if (!(func = wasm_runtime_lookup_wasi_start_function(fw->module_inst))) {
flb_error("The wasi mode main function is not found.");
return -1;
}

return wasm_runtime_call_wasm(fw->exec_env, func, 0, NULL);
return wasm_application_execute_main(fw->module_inst, 0, NULL);
#else
return -1;
#endif
Expand Down
Loading