Skip to content

Commit

Permalink
Rollup merge of #116500 - simlay:tvos-support-for-register_dtor, r=wo…
Browse files Browse the repository at this point in the history
…rkingjubilee

Add tvOS to target_os for register_dtor

Closes #116491.
  • Loading branch information
workingjubilee committed Oct 6, 2023
2 parents 5268120 + 3abef68 commit 4b102b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/thread_local_dtor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
// workaround below is to register, via _tlv_atexit, a custom DTOR list once per
// thread. thread_local dtors are pushed to the DTOR list without calling
// _tlv_atexit.
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))]
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "tvos"))]
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
use crate::cell::Cell;
use crate::mem;
Expand Down

0 comments on commit 4b102b0

Please sign in to comment.