about summary refs log tree commit diff
path: root/library/std/src/sys/unix/weak.rs
diff options
context:
space:
mode:
authorThom Chiovoloni <thom@shift.click>2022-10-11 17:22:12 -0700
committerThom Chiovoloni <thom@shift.click>2023-06-21 14:59:37 -0700
commitbdc3db944cf8da99d80e67e7bb52917512d0a5a7 (patch)
tree4bf332994538c0a5854994dbacd2f578e90cc73d /library/std/src/sys/unix/weak.rs
parent006a26c0b546abc0fbef59a773639582b641e500 (diff)
downloadrust-bdc3db944cf8da99d80e67e7bb52917512d0a5a7.tar.gz
rust-bdc3db944cf8da99d80e67e7bb52917512d0a5a7.zip
wip: Support Apple tvOS in libstd
Diffstat (limited to 'library/std/src/sys/unix/weak.rs')
-rw-r--r--library/std/src/sys/unix/weak.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/weak.rs b/library/std/src/sys/unix/weak.rs
index 62ffee70bec..61088ff16ed 100644
--- a/library/std/src/sys/unix/weak.rs
+++ b/library/std/src/sys/unix/weak.rs
@@ -28,7 +28,7 @@ use crate::ptr;
 use crate::sync::atomic::{self, AtomicPtr, Ordering};
 
 // We can use true weak linkage on ELF targets.
-#[cfg(not(any(target_os = "macos", target_os = "ios")))]
+#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))]
 pub(crate) macro weak {
     (fn $name:ident($($t:ty),*) -> $ret:ty) => (
         let ref $name: ExternWeak<unsafe extern "C" fn($($t),*) -> $ret> = {
@@ -43,7 +43,7 @@ pub(crate) macro weak {
 }
 
 // On non-ELF targets, use the dlsym approximation of weak linkage.
-#[cfg(any(target_os = "macos", target_os = "ios"))]
+#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))]
 pub(crate) use self::dlsym as weak;
 
 pub(crate) struct ExternWeak<F: Copy> {