Fix empty backtraces when panicking

This commit is contained in:
Ruihan Li
2024-04-02 23:12:17 +08:00
committed by Tate, Hongliang Tian
parent 198363c2d3
commit 3c31ec35cf
3 changed files with 5 additions and 2 deletions

View File

@ -133,6 +133,9 @@ fn build_kernel_elf(
"-C code-model=kernel",
"-C relocation-model=static",
"-Z relro-level=off",
// We do not really allow unwinding except for kernel testing. However, we need to specify
// this to show backtraces when panicking.
"-C panic=unwind",
]);
let mut command = cargo();