From cb41efcac46b4087da39b952d6c3bef771905214 Mon Sep 17 00:00:00 2001 From: Uyiosa Iyekekpolor Date: Mon, 29 Sep 2025 01:42:23 -0400 Subject: [PATCH] aix: link libc++abi when using libc++ --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e7e2f58de..ad14e8902 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1632,6 +1632,11 @@ impl Build { )); } } + // On aix we must also link libc++abi when using libc++ + if self.get_target()?.os == "aix" { + self.cargo_output + .print_metadata(&"cargo:rustc-link-lib=c++abi"); + } } let cudart = match &self.cudart {