Skip to content

Commit 4fad8ea

Browse files
surbangitbot
authored and
gitbot
committed
Add libc funcitons only for wasm32-wasip1-threads.
1 parent e4af1c1 commit 4fad8ea

File tree

1 file changed

+1
-1
lines changed
  • std/src/sys/thread_local/key

1 file changed

+1
-1
lines changed

std/src/sys/thread_local/key/unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::mem;
22

33
// For WASI add a few symbols not in upstream `libc` just yet.
4-
#[cfg(target_os = "wasi")]
4+
#[cfg(all(target_os = "wasi", target_env = "p1", target_feature = "atomics"))]
55
mod libc {
66
use crate::ffi;
77

0 commit comments

Comments
 (0)