use no_main on static lib

This commit is contained in:
Luke Boswell 2024-11-04 15:58:43 +11:00
parent 1b0cd14715
commit f20465ca41
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#![allow(non_snake_case)]
#![no_main]
use core::ffi::c_void;
use roc_std::RocStr;
@ -113,7 +114,7 @@ pub unsafe extern "C" fn roc_shm_open(
///
/// TODO
#[no_mangle]
pub extern "C" fn main() -> i32 {
pub extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
let mut roc_str = RocStr::default();
unsafe { roc_main(&mut roc_str) };