Skip to content

Commit

Permalink
Use target_family = "wasm"
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Oct 31, 2021
1 parent 6e35524 commit 3fd2ce4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/lib.rs
Expand Up @@ -46,7 +46,7 @@
#![cfg_attr(
all(
feature = "nightly",
target_arch = "wasm32",
target_family = "wasm",
target_feature = "atomics"
),
feature(stdsimd)
Expand Down
2 changes: 1 addition & 1 deletion core/src/parking_lot.rs
Expand Up @@ -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"
))] {
Expand Down
4 changes: 2 additions & 2 deletions core/src/thread_parker/mod.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 3fd2ce4

Please sign in to comment.