This commit is contained in:
nora 2023-09-30 10:25:23 +02:00
parent de90913d46
commit 54e0e7604e
23 changed files with 77 additions and 33 deletions

View file

@ -6,7 +6,7 @@ use core::ffi::c_char;
use libuwuc::{println, utils::SharedThinCstr};
extern crate libuwuc;
extern crate c;
#[panic_handler]
#[cfg(not(test))]
@ -27,11 +27,3 @@ extern "C" fn main(_argc: i32, _argv: *const *const c_char) -> i32 {
println!("PWD={pwd:?}");
0
}
// libcore seems to require this symbol, even though it's unused.
#[no_mangle]
fn rust_eh_personality() {
unsafe {
libuwuc::trap!();
}
}