about summary refs log tree commit diff
path: root/src/libstd/os
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2019-04-19 09:59:35 -0700
committerDan Gohman <sunfish@mozilla.com>2019-05-03 23:01:24 -0700
commit33ea556cb5301479c3cefe100d7a3216d135f5b0 (patch)
tree31d7f1a454c1bddc4d667281bffaeb52194ea1c5 /src/libstd/os
parente2326366935613816927e679d3b2dc04db44678c (diff)
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.
Diffstat (limited to 'src/libstd/os')
-rw-r--r--src/libstd/os/mod.rs2
1 files changed, 1 insertions, 1 deletions
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;