mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
wasi: make the demo run on wasi and run it in CI
This commit is contained in:
@@ -22,6 +22,11 @@ when !ODIN_TEST && !ODIN_NO_ENTRY_POINT {
|
||||
@(link_name="_start", linkage="strong", require, export)
|
||||
_start :: proc "c" () {
|
||||
context = default_context()
|
||||
|
||||
when ODIN_OS == .WASI {
|
||||
_wasi_setup_args()
|
||||
}
|
||||
|
||||
#force_no_inline _startup_runtime()
|
||||
intrinsics.__entry_point()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user