Skip to content

Commit 8275f72

Browse files
ian-h-chamberlainAzureMarker
authored andcommitted
Enable thread_local_dtor on horizon OS
Always use fallback thread_local destructor, since __cxa_thread_atexit_impl is never defined on the target. See AzureMarker/rust-horizon#2
1 parent ad86bc1 commit 8275f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/unix/thread_local_dtor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
9393
}
9494
}
9595

96-
#[cfg(target_os = "vxworks")]
96+
#[cfg(any(target_os = "vxworks", target_os = "horizon"))]
9797
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
9898
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
9999
register_dtor_fallback(t, dtor);

0 commit comments

Comments
 (0)