about summary refs log tree commit diff
path: root/src/libstd/sys
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/sys
parente2326366935613816927e679d3b2dc04db44678c (diff)
downloadrust-33ea556cb5301479c3cefe100d7a3216d135f5b0.tar.gz
rust-33ea556cb5301479c3cefe100d7a3216d135f5b0.zip
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/sys')
-rw-r--r--src/libstd/sys/mod.rs2
1 files changed, 1 insertions, 1 deletions
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")] {