basic-cli
basic-cli copied to clipboard
Exit code is always random memory garbage
This is because in host.c we use the return value of rust_main() as the exit code, but rust_main doesn't return anything right now.
To fix this:
- Change
rust_mainto returni32 - If
roc_main's task returnsOk {}then return0 - If
roc_main's task returns anErrthen return the 32-bit integer inside it