Skip to content
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

fixed the order of WASI_AFTER_RUNTIME_LOADED_CALLS #92552

Merged
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: 5 additions & 4 deletions src/mono/wasi/runtime/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ WASI_AFTER_RUNTIME_LOADED_DECLARATIONS

int main(int argc, char * argv[]) {

#ifdef WASI_AFTER_RUNTIME_LOADED_CALLS
// This is supplied from the MSBuild itemgroup @(WasiAfterRuntimeLoaded)
WASI_AFTER_RUNTIME_LOADED_CALLS
#endif
#ifndef WASM_SINGLE_FILE
mono_set_assemblies_path("managed");
#endif
mono_wasm_load_runtime("", 0);

#ifdef WASI_AFTER_RUNTIME_LOADED_CALLS
// This is supplied from the MSBuild itemgroup @(WasiAfterRuntimeLoaded)
WASI_AFTER_RUNTIME_LOADED_CALLS
#endif

int arg_ofs = 0;
#ifdef WASM_SINGLE_FILE
/*
Expand Down