Skip to content

Commit

Permalink
Merge pull request #52 from parasyte/fix/undefined-reference-to-panic
Browse files Browse the repository at this point in the history
Fix linker error: undefined symbol `core::panicking::panic`
  • Loading branch information
boozook authored Sep 15, 2023
2 parents 155da63 + 9f5539c commit f46cda4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -661,6 +662,7 @@ impl Build {
"-Ctarget-cpu=cortex-m7",
"-Clink-args=--emit-relocs",
"-Crelocation-model=pic",
"-Cpanic=abort",
]
.join(" "),
);
Expand Down

0 comments on commit f46cda4

Please sign in to comment.