Use more concise directives

This commit is contained in:
Alex Crichton
2021-10-28 16:32:30 -07:00
parent b7fb6c594a
commit 9a01750b1b
2 changed files with 3 additions and 4 deletions

View File

@@ -39,8 +39,7 @@ pub mod float;
pub mod int; pub mod int;
#[cfg(any( #[cfg(any(
all(target_arch = "wasm32", target_os = "unknown"), all(target_family = "wasm", target_os = "unknown"),
all(target_arch = "wasm64", target_os = "unknown"),
all(target_arch = "x86_64", target_os = "uefi"), all(target_arch = "x86_64", target_os = "uefi"),
all(target_arch = "arm", target_os = "none"), all(target_arch = "arm", target_os = "none"),
all(target_vendor = "fortanix", target_env = "sgx") all(target_vendor = "fortanix", target_env = "sgx")

View File

@@ -16,7 +16,7 @@ macro_rules! no_mangle {
#[cfg(any( #[cfg(any(
all( all(
any(target_arch = "wasm32", target_arch = "wasm64"), target_family = "wasm",
target_os = "unknown", target_os = "unknown",
not(target_env = "wasi") not(target_env = "wasi")
), ),
@@ -66,7 +66,7 @@ no_mangle! {
#[cfg(any( #[cfg(any(
all( all(
any(target_arch = "wasm32", target_arch = "wasm64"), target_family = "wasm",
target_os = "unknown", target_os = "unknown",
not(target_env = "wasi") not(target_env = "wasi")
), ),