Skip to content

Commit

Permalink
Fix build on AIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Luo committed Apr 2, 2024
1 parent 1f2d142 commit 00f7f57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,10 @@ fn main() {
}
}

// libc++abi have to be specified explicitly on AIX.
// libc++abi and libunwind have to be specified explicitly on AIX.
if target.contains("aix") {
println!("cargo:rustc-link-lib=c++abi");
println!("cargo:rustc-link-lib=unwind");
}

// Libstdc++ depends on pthread which Rust doesn't link on MinGW
Expand Down

0 comments on commit 00f7f57

Please sign in to comment.