Skip to content

Commit

Permalink
Fix compilation for wasm32-wasip1 (without threads).
Browse files Browse the repository at this point in the history
  • Loading branch information
surban authored and gitbot committed Feb 20, 2025
1 parent 27bfa1a commit c0a681b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions std/src/sys/thread_local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ pub(crate) mod guard {
mod windows;
pub(crate) use windows::enable;
} else if #[cfg(any(
all(target_family = "wasm", not(target_os="wasi")),
all(target_family = "wasm", not(
all(target_os = "wasi", target_env = "p1", target_feature = "atomics")
)),
target_os = "uefi",
target_os = "zkvm",
))] {
Expand Down Expand Up @@ -135,7 +137,7 @@ pub(crate) mod key {
target_family = "unix",
),
target_os = "teeos",
target_os = "wasi",
all(target_os = "wasi", target_env = "p1", target_feature = "atomics"),
))] {
mod racy;
mod unix;
Expand Down

0 comments on commit c0a681b

Please sign in to comment.