add script to prebuild platform-switching rust

This commit is contained in:
Luke Boswell 2024-11-04 15:37:34 +11:00
parent 81f466fee0
commit 1b0cd14715
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
17 changed files with 57 additions and 845 deletions

View file

@ -113,7 +113,7 @@ pub unsafe extern "C" fn roc_shm_open(
///
/// TODO
#[no_mangle]
pub extern "C" fn rust_main() -> i32 {
pub extern "C" fn main() -> i32 {
let mut roc_str = RocStr::default();
unsafe { roc_main(&mut roc_str) };
@ -126,6 +126,5 @@ pub extern "C" fn rust_main() -> i32 {
panic!("Failed to flush stdout: {:?}", e);
}
// Exit code
0
}