[libcxx-commits] [PATCH] D112112: [libunwind] Link with -unwindlib=none

Harald van Dijk via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 20 01:54:49 PDT 2021


hvdijk added a comment.

In D112112#3074591 <https://reviews.llvm.org/D112112#3074591>, @mstorsjo wrote:

> Actually, I remembered I had an unupstreamed patch regarding this locally... It turns out that testing `check_c_compiler_flag(-unwindlib=none)` doesn't work, as the tested flag is added the the compile command (but not to the link command), so the link part of the test command still fails.

The `libunwind/src/CMakeLists.txt` change sets up the link flag; I've tested 13.0.0 without and with this patch and on the exact system where without this patch it fails to link, with this patch it succeeds.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112112/new/

https://reviews.llvm.org/D112112



More information about the libcxx-commits mailing list