From 2dbc030bde05f502ed86180d76b9f65ad3267188 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 24 Aug 2026 11:30:20 -0700 Subject: [PATCH] Unconditionally link wasip3 C-based intrinsics Don't take the target into account here since the crate could be compiled for any target and these intrinsics would still be necessary. --- crates/guest-rust/build.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/guest-rust/build.rs b/crates/guest-rust/build.rs index bd1febc74..148370c46 100644 --- a/crates/guest-rust/build.rs +++ b/crates/guest-rust/build.rs @@ -17,9 +17,7 @@ fn main() { if target_env == "p1" || target_env == "" { link_lib("cabi_realloc"); } - if target_env == "p3" { - link_lib("cabi_wasip3"); - } + link_lib("cabi_wasip3"); } fn link_lib(name: &str) {