about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-04-05 13:18:13 +1100
committerGitHub <noreply@github.com>2025-04-05 13:18:13 +1100
commit92bb7261c48b96c49c97b4e83fc311e42280e7cb (patch)
tree4d5f2eb18930dbe2354dbaf05eefb4b20ced9784 /library/std/src/sys
parentc6bf3a01efd2ba8720cede198d3e9b9eadfc712c (diff)
parente41cce03a00d29d56f0bb74fb0d5d3e69ee7dfc8 (diff)
downloadrust-92bb7261c48b96c49c97b4e83fc311e42280e7cb.tar.gz
rust-92bb7261c48b96c49c97b4e83fc311e42280e7cb.zip
Rollup merge of #137897 - xTachyon:tls-fix, r=thomcc,jieyouxu
fix pthread-based tls on apple targets

Tries to fix #127773.
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/thread_local/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/thread_local/mod.rs b/library/std/src/sys/thread_local/mod.rs
index 1ff13154b7b..b7ce6fcdc05 100644
--- a/library/std/src/sys/thread_local/mod.rs
+++ b/library/std/src/sys/thread_local/mod.rs
@@ -138,6 +138,7 @@ pub(crate) mod key {
                 not(target_family = "wasm"),
                 target_family = "unix",
             ),
+            all(not(target_thread_local), target_vendor = "apple"),
             target_os = "teeos",
             all(target_os = "wasi", target_env = "p1", target_feature = "atomics"),
         ))] {