aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2021-10-24 01:11:20 +0300
committerMartin Storsjö <martin@martin.st>2021-12-08 00:32:40 +0200
commit317dc31e53b83c1d2a468d7a541925f0cc7d9dce (patch)
tree7d9c304cf712bf9b09b5f7813731e3cd3bd9b25e /llvm/lib/IR/Module.cpp
parentfa517555420b8d86268b733d371413d607db3358 (diff)
downloadllvm-317dc31e53b83c1d2a468d7a541925f0cc7d9dce.zip
llvm-317dc31e53b83c1d2a468d7a541925f0cc7d9dce.tar.gz
llvm-317dc31e53b83c1d2a468d7a541925f0cc7d9dce.tar.bz2
Reapply [runtimes] Fix building initial libunwind+libcxxabi+libcxx with compiler implied -lunwind
This does mostly the same as D112126, but for the runtimes cmake files. Most of that is straightforward, but the interdependency between libcxx and libunwind is tricky: Libunwind is built at the same time as libcxx, but libunwind is not installed yet. LIBCXXABI_USE_LLVM_UNWINDER makes libcxx link directly against the just-built libunwind, but the compiler implicit -lunwind isn't found. This patch avoids that by adding --unwindlib=none if supported, if we are going to link explicitly against a newly built unwinder anyway. Reapplying this after db32c4f45625dddc2c5cb683adf3d9cab7a9732f, which should fix the issues that were reported last time this was applied. Differential Revision: https://reviews.llvm.org/D113253
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions