mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
use no_main on static lib
This commit is contained in:
parent
1b0cd14715
commit
f20465ca41
2 changed files with 2 additions and 1 deletions
|
@ -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) };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue