Skip to content

Commit 3abef68

Browse files
committed
Add tvOS to target_os for register_dtor
1 parent 94bc9c7 commit 3abef68

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)