File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,6 @@ import (
1111
1212type timeUnit int64
1313
14- //export wasi:cli/[email protected] #run 15- func __wasi_cli_run_run () uint32 {
16- // These need to be initialized early so that the heap can be initialized.
17- heapStart = uintptr (unsafe .Pointer (& heapStartSymbol ))
18- heapEnd = uintptr (wasm_memory_size (0 ) * wasmPageSize )
19- run ()
20- return 0
21- }
22-
2314//export _initialize
2415func _initialize () {
2516 // These need to be initialized early so that the heap can be initialized.
@@ -29,6 +20,12 @@ func _initialize() {
2920 initAll ()
3021}
3122
23+ //export wasi:cli/[email protected] #run 24+ func __wasi_cli_run_run () uint32 {
25+ callMain ()
26+ return 0
27+ }
28+
3229var args []string
3330
3431//go:linkname os_runtime_args os.runtime_args
You can’t perform that action at this time.
0 commit comments