Skip to content

Commit 1dd0a01

Browse files
committed
Fix backtraces with -C panic=abort on qnx; emit unwind tables by default
1 parent fed46ff commit 1dd0a01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_target/src/spec/base/nto_qnx.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ pub(crate) fn opts() -> TargetOptions {
1212
has_thread_local: false,
1313
linker: Some("qcc".into()),
1414
os: "nto".into(),
15+
// We want backtraces to work by default and they rely on unwind tables
16+
// (regardless of `-C panic` strategy).
17+
default_uwtable: true,
1518
position_independent_executables: true,
1619
static_position_independent_executables: true,
1720
relro_level: RelroLevel::Full,

0 commit comments

Comments
 (0)