Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 04ad778

Browse files
authoredOct 7, 2023
Unrolled build for rust-lang#116500
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 8fdb0a9 + 3abef68 commit 04ad778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/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)
Please sign in to comment.