Skip to content

Commit 1f2d142

Browse files
author
Kai Luo
committed
Fix linking c++ runtimes on AIX
1 parent e2cf2cb commit 1f2d142

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_llvm/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ fn main() {
391391
}
392392
}
393393

394+
// libc++abi have to be specified explicitly on AIX.
395+
if target.contains("aix") {
396+
println!("cargo:rustc-link-lib=c++abi");
397+
}
398+
394399
// Libstdc++ depends on pthread which Rust doesn't link on MinGW
395400
// since nothing else requires it.
396401
if target.ends_with("windows-gnu") {

0 commit comments

Comments
 (0)