reduced binary size and disabled breakage from panic_impl
This commit is contained in:
@@ -7,20 +7,13 @@
|
||||
*/
|
||||
|
||||
#![no_std]
|
||||
#![feature(core_intrinsics, lang_items, start)]
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||
|
||||
#[lang = "eh_personality"]
|
||||
#[no_mangle]
|
||||
fn rust_eh_personality() {}
|
||||
|
||||
#[lang = "panic_impl"]
|
||||
#[no_mangle]
|
||||
fn panic(_: &core::panic::PanicInfo) -> ! { core::intrinsics::abort() }
|
||||
extern crate core;
|
||||
|
||||
#[no_mangle]
|
||||
pub fn exit(code: u32) -> ! {
|
||||
|
||||
Reference in New Issue
Block a user