about summary refs log tree commit diff
path: root/library/std/src/sys/pal/mod.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2024-03-12 15:10:01 -0700
committerAlex Crichton <alex@alexcrichton.com>2024-03-13 08:15:07 -0700
commit3311283f90dd62dcd322d6730f0dd09b3ee6d7fd (patch)
treebe5292d61e106bbcac409329d9e2099783e32ee6 /library/std/src/sys/pal/mod.rs
parent9ce37dc7290e60bd0dfc7a5d4fcdbbd836f989f0 (diff)
downloadrust-3311283f90dd62dcd322d6730f0dd09b3ee6d7fd.tar.gz
rust-3311283f90dd62dcd322d6730f0dd09b3ee6d7fd.zip
Get wasm32-wasip2 compiling with its custom pal implementation
The ordering of targets in `pal/mod.rs` did not end up using the wasip2
implementation, so after reordering that I've edited the implementation
to compile correctly.
Diffstat (limited to 'library/std/src/sys/pal/mod.rs')
-rw-r--r--library/std/src/sys/pal/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/pal/mod.rs b/library/std/src/sys/pal/mod.rs
index 7c87deed371..8c75ac65299 100644
--- a/library/std/src/sys/pal/mod.rs
+++ b/library/std/src/sys/pal/mod.rs
@@ -37,12 +37,12 @@ cfg_if::cfg_if! {
     } else if #[cfg(target_os = "hermit")] {
         mod hermit;
         pub use self::hermit::*;
-    } else if #[cfg(target_os = "wasi")] {
-        mod wasi;
-        pub use self::wasi::*;
     } else if #[cfg(all(target_os = "wasi", target_env = "p2"))] {
         mod wasip2;
         pub use self::wasip2::*;
+    } else if #[cfg(target_os = "wasi")] {
+        mod wasi;
+        pub use self::wasi::*;
     } else if #[cfg(target_family = "wasm")] {
         mod wasm;
         pub use self::wasm::*;