diff options
author | jasonliu <jasonliu.development@gmail.com> | 2021-05-27 15:47:20 +0000 |
---|---|---|
committer | jasonliu <jasonliu.development@gmail.com> | 2021-05-27 15:48:53 +0000 |
commit | 7922ff601094585c4b46b2640b7d07986f722c1b (patch) | |
tree | 49167415515e3e841dc1afc54892317a8da4486d /clang/lib/Driver/ToolChain.cpp | |
parent | cf0b337c1b1f064c81fe40124ddba178572778d6 (diff) | |
download | llvm-7922ff601094585c4b46b2640b7d07986f722c1b.zip llvm-7922ff601094585c4b46b2640b7d07986f722c1b.tar.gz llvm-7922ff601094585c4b46b2640b7d07986f722c1b.tar.bz2 |
[AIX] Add -lc++abi and -lunwind for linking
Summary:
We are going to have libc++abi.a and libunwind.a on AIX.
Add the necessary linking command to pick the libraries up.
Reviewed By: daltenty
Differential Revision: https://reviews.llvm.org/D102813
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp index 3342de8..5791805 100644 --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp @@ -788,7 +788,7 @@ ToolChain::UnwindLibType ToolChain::GetUnwindLibType( else if (LibName == "platform" || LibName == "") { ToolChain::RuntimeLibType RtLibType = GetRuntimeLibType(Args); if (RtLibType == ToolChain::RLT_CompilerRT) { - if (getTriple().isAndroid()) + if (getTriple().isAndroid() || getTriple().isOSAIX()) unwindLibType = ToolChain::UNW_CompilerRT; else unwindLibType = ToolChain::UNW_None; |