Skip to content

Commit 1231184

Browse files
committed
fix cfg
1 parent 0da08c4 commit 1231184

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/sys/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
cfg_if::cfg_if! {
2-
if #[cfg(any(feature = "wasip3", all(target_os = "wasi", target_env = "p3")))] {
3-
mod p3;
4-
use p3 as backend;
5-
} else {
2+
if #[cfg(all(target_os = "wasi", target_env = "p2"))] {
63
mod p2;
74
use p2 as backend;
5+
} else {
6+
compile_error!("unsupported target: wstd only compiles on `wasm32-wasip2`");
87
}
98
}
109

0 commit comments

Comments
 (0)