Skip to content

Commit ba52f9d

Browse files
authored
[wasi] fixed the order of WASI_AFTER_RUNTIME_LOADED_CALLS (#92552)
1 parent 5159573 commit ba52f9d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/mono/wasi/runtime/main.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ WASI_AFTER_RUNTIME_LOADED_DECLARATIONS
1212

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

15-
#ifdef WASI_AFTER_RUNTIME_LOADED_CALLS
16-
// This is supplied from the MSBuild itemgroup @(WasiAfterRuntimeLoaded)
17-
WASI_AFTER_RUNTIME_LOADED_CALLS
18-
#endif
1915
#ifndef WASM_SINGLE_FILE
2016
mono_set_assemblies_path("managed");
2117
#endif
2218
mono_wasm_load_runtime("", 0);
2319

20+
#ifdef WASI_AFTER_RUNTIME_LOADED_CALLS
21+
// This is supplied from the MSBuild itemgroup @(WasiAfterRuntimeLoaded)
22+
WASI_AFTER_RUNTIME_LOADED_CALLS
23+
#endif
24+
2425
int arg_ofs = 0;
2526
#ifdef WASM_SINGLE_FILE
2627
/*

0 commit comments

Comments
 (0)