diff --git a/core/src/lib.rs b/core/src/lib.rs index 27087f47..4845356e 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -46,7 +46,7 @@ #![cfg_attr( all( feature = "nightly", - target_arch = "wasm32", + target_family = "wasm", target_feature = "atomics" ), feature(stdsimd) diff --git a/core/src/parking_lot.rs b/core/src/parking_lot.rs index da6c972f..9b845258 100644 --- a/core/src/parking_lot.rs +++ b/core/src/parking_lot.rs @@ -18,7 +18,7 @@ use std::time::{Duration, Instant}; // Don't use Instant on wasm32-unknown-unknown, it just panics. cfg_if::cfg_if! { if #[cfg(all( - target_arch = "wasm32", + target_family = "wasm", target_os = "unknown", target_vendor = "unknown" ))] { diff --git a/core/src/thread_parker/mod.rs b/core/src/thread_parker/mod.rs index 544c2262..fc162f4c 100644 --- a/core/src/thread_parker/mod.rs +++ b/core/src/thread_parker/mod.rs @@ -68,12 +68,12 @@ cfg_if! { mod imp; } else if #[cfg(all( feature = "nightly", - target_arch = "wasm32", + target_family = "wasm", target_feature = "atomics" ))] { #[path = "wasm_atomic.rs"] mod imp; - } else if #[cfg(target_arch = "wasm32")] { + } else if #[cfg(target_family = "wasm")] { #[path = "wasm.rs"] mod imp; } else {