mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
add script to prebuild platform-switching rust
This commit is contained in:
parent
81f466fee0
commit
1b0cd14715
17 changed files with 57 additions and 845 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue