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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 01:49:32 PDT 2021


mstorsjo added a reviewer: phosek.
mstorsjo added a comment.

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. So to test this, one has to try blindly adding it to `CMAKE_REQUIRED_FLAGS`, then do a dummy `check_c_compiler_flag` call to see if it worked, and then revert it if it wasn't supported.

I can post my version of my patch that I found locally, which tries to fix that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112112



More information about the llvm-commits mailing list