-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasip2: do not export the _start function
It seems to have been replaced with the Component Model `run` function.
- Loading branch information
1 parent
1f3e000
commit c931bc7
Showing
2 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,11 @@ type timeUnit int64 | |
|
||
//export wasi:cli/[email protected]#run | ||
func __wasi_cli_run_run() uint32 { | ||
_start() | ||
return 0 | ||
} | ||
|
||
//export _start | ||
func _start() { | ||
// These need to be initialized early so that the heap can be initialized. | ||
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol)) | ||
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize) | ||
run() | ||
} | ||
|
||
func init() { | ||
return 0 | ||
} | ||
|
||
var args []string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters