mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-03 21:57:31 +03:00
flush write_all
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
7c7485bb04
commit
8f9d4149ca
@ -93,6 +93,11 @@ pub extern "C" fn rust_main() -> i32 {
|
||||
panic!("Writing to stdout failed! {:?}", e);
|
||||
}
|
||||
|
||||
// roc_str will not print without flushing if it does not contain a newline and you're using --linker=legacy
|
||||
if let Err(e) = std::io::stdout().flush() {
|
||||
panic!("Failed to flush stdout: {:?}", e);
|
||||
}
|
||||
|
||||
// Exit code
|
||||
0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user