Skip to content

Commit cb41efc

Browse files
committed
aix: link libc++abi when using libc++
1 parent 89fb94c commit cb41efc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,6 +1632,11 @@ impl Build {
16321632
));
16331633
}
16341634
}
1635+
// On aix we must also link libc++abi when using libc++
1636+
if self.get_target()?.os == "aix" {
1637+
self.cargo_output
1638+
.print_metadata(&"cargo:rustc-link-lib=c++abi");
1639+
}
16351640
}
16361641

16371642
let cudart = match &self.cudart {

0 commit comments

Comments
 (0)