Skip to content
Snippets Groups Projects
Commit 30ed9835 authored by Dan Gohman's avatar Dan Gohman
Browse files

Recognize WASI as either a target_env or a target_os.

Rustc is changing it to be target_os; for now, recognize both.
parent 3aa0188f
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ cfg_if! { ...@@ -112,7 +112,7 @@ cfg_if! {
} else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] { } else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
mod sgx; mod sgx;
pub use sgx::*; pub use sgx::*;
} else if #[cfg(target_env = "wasi")] { } else if #[cfg(any(target_env = "wasi", target_os = "wasi"))] {
mod wasi; mod wasi;
pub use wasi::*; pub use wasi::*;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment