From 33ea556cb5301479c3cefe100d7a3216d135f5b0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Apr 2019 09:59:35 -0700 Subject: Categorize WASI as an "OS" rather than as an "environment". This distinction is fairly abstract, but in practice, the main advantage here is that LLVM's triple code considers WASI to be an OS, so this makes rustc agree with that. --- src/libstd/os/mod.rs | 2 +- src/libstd/sys/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/os/mod.rs b/src/libstd/os/mod.rs index d48b5acffc0..7b56d6d62cf 100644 --- a/src/libstd/os/mod.rs +++ b/src/libstd/os/mod.rs @@ -51,7 +51,7 @@ cfg_if! { #[cfg(target_os = "emscripten")] pub mod emscripten; #[cfg(target_os = "fuchsia")] pub mod fuchsia; #[cfg(target_os = "hermit")] pub mod hermit; -#[cfg(target_env = "wasi")] pub mod wasi; +#[cfg(target_os = "wasi")] pub mod wasi; #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] pub mod fortanix_sgx; pub mod raw; diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs index d7ce6a08e01..3f3cedc53b7 100644 --- a/src/libstd/sys/mod.rs +++ b/src/libstd/sys/mod.rs @@ -35,7 +35,7 @@ cfg_if! { } else if #[cfg(target_os = "redox")] { mod redox; pub use self::redox::*; - } else if #[cfg(target_env = "wasi")] { + } else if #[cfg(target_os = "wasi")] { mod wasi; pub use self::wasi::*; } else if #[cfg(target_arch = "wasm32")] { -- cgit 1.4.1-3-g733a5