diff options
| author | Rafael RL <rafael.ruiz-lucena@de.bosch.com> | 2025-07-23 12:25:20 +0200 |
|---|---|---|
| committer | Rafael RL <ruz4fe@bosch.com> | 2025-08-25 10:34:40 +0200 |
| commit | 17c866780e4f60c4b5ce0c0925557949c9c8d8b1 (patch) | |
| tree | f004aed7192cf9ff4c189bbd2711c356f1c5b3e8 /library/std/src/sys/backtrace.rs | |
| parent | ee361e8fca1c30e13e7a31cc82b64c045339d3a8 (diff) | |
| download | rust-17c866780e4f60c4b5ce0c0925557949c9c8d8b1.tar.gz rust-17c866780e4f60c4b5ce0c0925557949c9c8d8b1.zip | |
fix(std): Add __my_thread_exit stub for QNX 8
This commit adds an empty stub for the function for QNX 8 targets. This symbol is required by the unwinder but is not present, causing a linking failure when building with the standard library. Address review feedback: use whitelist for QNX versions
Diffstat (limited to 'library/std/src/sys/backtrace.rs')
| -rw-r--r-- | library/std/src/sys/backtrace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/backtrace.rs b/library/std/src/sys/backtrace.rs index 272d0fa4d1a..57682207e07 100644 --- a/library/std/src/sys/backtrace.rs +++ b/library/std/src/sys/backtrace.rs @@ -113,7 +113,7 @@ unsafe fn _print_fmt(fmt: &mut fmt::Formatter<'_>, print_fmt: PrintFmt) -> fmt:: res = bt_fmt.frame().symbol(frame, symbol); } }); - #[cfg(target_os = "nto")] + #[cfg(all(target_os = "nto", any(target_env = "nto70", target_env = "nto71")))] if libc::__my_thread_exit as *mut libc::c_void == frame.ip() { if !hit && print { use crate::backtrace_rs::SymbolName; |
