Skip to content

Commit ab1a442

Browse files
Rollup merge of rust-lang#116500 - simlay:tvos-support-for-register_dtor, r=workingjubilee
Add tvOS to target_os for register_dtor Closes rust-lang#116491.
2 parents d87113f + b425566 commit ab1a442

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
@@ -67,7 +67,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
6767
// workaround below is to register, via _tlv_atexit, a custom DTOR list once per
6868
// thread. thread_local dtors are pushed to the DTOR list without calling
6969
// _tlv_atexit.
70-
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))]
70+
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "tvos"))]
7171
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
7272
use crate::cell::Cell;
7373
use crate::mem;

0 commit comments

Comments
 (0)