Skip to content

Commit 5fda33e

Browse files
committed
Recognize WASI as either a target_env or a target_os.
Rustc is changing it to be target_os; for now, recognize both.
1 parent 9bb89eb commit 5fda33e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ cfg_if! {
112112
} else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
113113
mod sgx;
114114
pub use sgx::*;
115-
} else if #[cfg(target_env = "wasi")] {
115+
} else if #[cfg(any(target_env = "wasi", target_os = "wasi"))] {
116116
mod wasi;
117117
pub use wasi::*;
118118
} else {

0 commit comments

Comments
 (0)