diff options
| author | Kai Luo <lkail@cn.ibm.com> | 2024-04-02 17:25:22 +0800 |
|---|---|---|
| committer | Kai Luo <lkail@cn.ibm.com> | 2024-04-02 17:25:22 +0800 |
| commit | 00f7f57159aac2e1df49db2eb87353338bef2bb0 (patch) | |
| tree | f799a8d088f49a9a4accb751d7ed6a04085b07b0 /compiler/rustc_llvm | |
| parent | 1f2d1420cb1c5c5cb52712955f8ed47dcfda8c67 (diff) | |
| download | rust-00f7f57159aac2e1df49db2eb87353338bef2bb0.tar.gz rust-00f7f57159aac2e1df49db2eb87353338bef2bb0.zip | |
Fix build on AIX
Diffstat (limited to 'compiler/rustc_llvm')
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 66fa4bde785..e2c0ec90c7c 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -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 |
