diff options
| author | Sebastian Imlay <sebastian.imlay@gmail.com> | 2023-10-06 18:11:49 -0400 |
|---|---|---|
| committer | Sebastian Imlay <sebastian.imlay@gmail.com> | 2023-10-06 18:11:49 -0400 |
| commit | 3abef68e63e12a1c6af2e09c2f020f778d2892ee (patch) | |
| tree | 64d9801adbe37454cb8c8882ee1eb715131ceb8d | |
| parent | 94bc9c737ea97d56f9b4076553ac37c05c1e3931 (diff) | |
| download | rust-3abef68e63e12a1c6af2e09c2f020f778d2892ee.tar.gz rust-3abef68e63e12a1c6af2e09c2f020f778d2892ee.zip | |
Add tvOS to target_os for register_dtor
| -rw-r--r-- | library/std/src/sys/unix/thread_local_dtor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/thread_local_dtor.rs b/library/std/src/sys/unix/thread_local_dtor.rs index e9d19766592..4a732a2cabd 100644 --- a/library/std/src/sys/unix/thread_local_dtor.rs +++ b/library/std/src/sys/unix/thread_local_dtor.rs @@ -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; |
