diff --git a/src/main.rs b/src/main.rs index 4d5a84c..28c9817 100644 --- a/src/main.rs +++ b/src/main.rs @@ -651,6 +651,7 @@ impl Build { args.push("thumbv7em-none-eabihf"); args.push("-Zbuild-std=core,alloc"); + args.push("-Zbuild-std-features=panic_immediate_abort"); } let envs = if self.device { @@ -661,6 +662,7 @@ impl Build { "-Ctarget-cpu=cortex-m7", "-Clink-args=--emit-relocs", "-Crelocation-model=pic", + "-Cpanic=abort", ] .join(" "), );