Skip to content

Commit cb06f58

Browse files
committed
Use more concise directives
1 parent 8ebb85a commit cb06f58

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ pub mod float;
3939
pub mod int;
4040

4141
#[cfg(any(
42-
all(target_arch = "wasm32", target_os = "unknown"),
43-
all(target_arch = "wasm64", target_os = "unknown"),
42+
all(target_family = "wasm", target_os = "unknown"),
4443
all(target_arch = "x86_64", target_os = "uefi"),
4544
all(target_arch = "arm", target_os = "none"),
4645
all(target_vendor = "fortanix", target_env = "sgx")

src/math.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ macro_rules! no_mangle {
1616

1717
#[cfg(any(
1818
all(
19-
any(target_arch = "wasm32", target_arch = "wasm64"),
19+
target_family = "wasm",
2020
target_os = "unknown",
2121
not(target_env = "wasi")
2222
),
@@ -66,7 +66,7 @@ no_mangle! {
6666

6767
#[cfg(any(
6868
all(
69-
any(target_arch = "wasm32", target_arch = "wasm64"),
69+
target_family = "wasm",
7070
target_os = "unknown",
7171
not(target_env = "wasi")
7272
),

0 commit comments

Comments
 (0)