mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Fix empty backtraces when panicking
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
198363c2d3
commit
3c31ec35cf
@ -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();
|
||||
|
Reference in New Issue
Block a user