1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-03 00:36:06 +00:00

build(core/rust): workaround failing build_unix_debug

[no changelog]
This commit is contained in:
Martin Milata 2022-09-20 10:29:28 +02:00 committed by matejcik
parent ac6936d65d
commit f956966fda

View File

@ -3,6 +3,7 @@
#![allow(clippy::new_without_default)]
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(dead_code)]
#![feature(lang_items)]
#[macro_use]
extern crate num_derive;
@ -55,3 +56,10 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
// Otherwise, use `unwrap!` macro from trezorhal.
trezorhal::common::__fatal_error("", "rs", "", 0, "");
}
#[cfg(not(target_arch = "arm"))]
#[cfg(not(test))]
#[cfg(any(not(feature = "test"), feature = "clippy"))]
#[lang = "eh_personality"]
/// Needed by full debuginfo `opt-level = 0` builds for some reason.
extern "C" fn eh_personality() {}