export rust_eh_personality manually

This commit is contained in:
Simon Renblad 2025-02-13 15:04:59 +08:00 committed by sb10q
parent 98255ec25a
commit 9f1f349b29
3 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#![feature(alloc_error_handler)]
#![feature(const_btree_new)]
#![feature(panic_info_message)]
#![feature(lang_items)]
#[macro_use]
extern crate alloc;

View File

@ -71,3 +71,7 @@ fn soft_panic(info: &core::panic::PanicInfo) -> ! {
};
soft_panic_main(timer, cfg);
}
#[lang = "eh_personality"]
#[no_mangle]
pub extern "C" fn rust_eh_personality() {}

View File

@ -1,6 +1,7 @@
#![no_std]
#![no_main]
#![feature(alloc_error_handler, never_type, panic_info_message)]
#![feature(lang_items)]
#[macro_use]
extern crate log;
@ -1810,3 +1811,7 @@ pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[lang = "eh_personality"]
#[no_mangle]
pub extern "C" fn rust_eh_personality() {}