diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2021-10-28 16:28:21 -0700 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2021-11-10 08:35:42 -0800 | 
| commit | 971638824fd859eb28dbee069ad109fc80e3e5c5 (patch) | |
| tree | a7378f4ad38642295f0179925b27a9d50262e1ae /library/std/src/sys_common/mod.rs | |
| parent | cfb2f98e9e0bfbad2078b6632c1456c528824088 (diff) | |
| download | rust-971638824fd859eb28dbee069ad109fc80e3e5c5.tar.gz rust-971638824fd859eb28dbee069ad109fc80e3e5c5.zip | |
Use `target_family = "wasm"`
Diffstat (limited to 'library/std/src/sys_common/mod.rs')
| -rw-r--r-- | library/std/src/sys_common/mod.rs | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/library/std/src/sys_common/mod.rs b/library/std/src/sys_common/mod.rs index 0f2a8cd0012..804727fbc54 100644 --- a/library/std/src/sys_common/mod.rs +++ b/library/std/src/sys_common/mod.rs @@ -40,8 +40,7 @@ cfg_if::cfg_if! { if #[cfg(any(target_os = "l4re", target_os = "hermit", feature = "restricted-std", - all(target_arch = "wasm32", not(target_os = "emscripten")), - all(target_arch = "wasm64", not(target_os = "emscripten")), + all(target_family = "wasm", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))] { pub use crate::sys::net; } else { | 
