Commit e451261f authored by Jeremy Soller's avatar Jeremy Soller

Fix definition of panic_fmt, remove lto from build profile

parent 58bd5fd8
......@@ -7,7 +7,6 @@ name = "newlib_redox"
crate-type = ["staticlib"]
[profile.release]
lto = true
panic = "abort"
[dependencies]
......
......@@ -91,9 +91,10 @@ pub extern "C" fn eh_personality() {}
#[lang = "panic_fmt"]
#[linkage = "weak"]
#[no_mangle]
pub extern fn rust_begin_panic(_msg: core::fmt::Arguments,
pub extern "C" fn rust_begin_unwind(_msg: core::fmt::Arguments,
_file: &'static str,
_line: u32) -> ! {
_line: u32,
_col: u32) -> ! {
unsafe { intrinsics::abort() }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment