Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig

This commit is contained in:
Luke Boswell 2024-09-05 12:11:51 +10:00
commit 99e2bc2038
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
253 changed files with 7403 additions and 4217 deletions

View file

@ -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
}