diff --git a/src/lib.rs b/src/lib.rs index e7e2f58d..ad14e890 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 {