mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Just disable gc-sections with surgical linker for rust hosts for now
This commit is contained in:
parent
754130d25f
commit
e6c137889a
6 changed files with 8 additions and 115 deletions
|
@ -1,7 +1,6 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use core::ffi::c_void;
|
||||
use core::mem::MaybeUninit;
|
||||
use libc::c_char;
|
||||
use roc_std::RocStr;
|
||||
use std::ffi::CStr;
|
||||
|
@ -55,7 +54,7 @@ pub unsafe extern "C" fn roc_memset(dst: *mut c_void, c: i32, n: usize) -> *mut
|
|||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_main() -> isize {
|
||||
pub extern "C" fn rust_main() -> i32 {
|
||||
unsafe {
|
||||
let roc_str = roc_main();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue