mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-04 06:08:10 +03:00
commit
cb804b9975
@ -93,6 +93,11 @@ pub extern "C" fn rust_main() -> i32 {
|
|||||||
panic!("Writing to stdout failed! {:?}", e);
|
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
|
// Exit code
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user