mirror of https://github.com/m-labs/artiq.git
satman: unbreak after c586035c
This commit is contained in:
parent
c586035caa
commit
f5aa73b8fa
|
@ -1,13 +1,13 @@
|
|||
#![feature(compiler_builtins_lib)]
|
||||
#![feature(compiler_builtins_lib, lang_items)]
|
||||
#![no_std]
|
||||
|
||||
extern crate compiler_builtins;
|
||||
extern crate alloc_artiq;
|
||||
#[macro_use]
|
||||
extern crate std_artiq as std;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate logger_artiq;
|
||||
#[macro_use]
|
||||
extern crate board;
|
||||
extern crate drtioaux;
|
||||
|
||||
|
@ -148,6 +148,13 @@ pub extern fn abort() {
|
|||
panic!("aborted")
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
#[lang = "panic_fmt"]
|
||||
pub extern fn panic_fmt(args: core::fmt::Arguments, file: &'static str, line: u32) -> ! {
|
||||
println!("panic at {}:{}: {}", file, line, args);
|
||||
loop {}
|
||||
}
|
||||
|
||||
// Allow linking with crates that are built as -Cpanic=unwind even if we use -Cpanic=abort.
|
||||
// This is never called.
|
||||
#[allow(non_snake_case)]
|
||||
|
|
Loading…
Reference in New Issue