Skip to content

Commit

Permalink
[wasi] fixed the order of WASI_AFTER_RUNTIME_LOADED_CALLS (dotnet#92552)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw authored Sep 26, 2023
1 parent 5159573 commit ba52f9d
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit ba52f9d

Please sign in to comment.