diff options
| author | Sebastian Urban <surban@surban.net> | 2024-12-05 12:24:19 +0100 |
|---|---|---|
| committer | Sebastian Urban <surban@surban.net> | 2024-12-05 12:24:19 +0100 |
| commit | 4f16640bbf88df43ac34b4c772589931d7d567d2 (patch) | |
| tree | 03afd38f6a00ac71ae34a74705067867db29db37 /library/std/src/sys/thread_local | |
| parent | e4092bd9091a68fcc6ddce0a0a72290003c4d560 (diff) | |
| download | rust-4f16640bbf88df43ac34b4c772589931d7d567d2.tar.gz rust-4f16640bbf88df43ac34b4c772589931d7d567d2.zip | |
Add libc funcitons only for wasm32-wasip1-threads.
Diffstat (limited to 'library/std/src/sys/thread_local')
| -rw-r--r-- | library/std/src/sys/thread_local/key/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/thread_local/key/unix.rs b/library/std/src/sys/thread_local/key/unix.rs index 6661e378dbf..b4b58b34706 100644 --- a/library/std/src/sys/thread_local/key/unix.rs +++ b/library/std/src/sys/thread_local/key/unix.rs @@ -1,7 +1,7 @@ use crate::mem; // For WASI add a few symbols not in upstream `libc` just yet. -#[cfg(target_os = "wasi")] +#[cfg(all(target_os = "wasi", target_env = "p1", target_feature = "atomics"))] mod libc { use crate::ffi; |
