[PATCH] D112126: [libunwind] Try to add -unwindlib=none while configuring and building libunwind

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 04:04:56 PDT 2021


mstorsjo added a comment.

In D112126#3074610 <https://reviews.llvm.org/D112126#3074610>, @mstorsjo wrote:

> Given how messy this actually turns out, I'm wondering if we should consider using only `-nodefaultlibs` in libunwind after all, as @hvdijk suggested originally. What does @phosek think?

Actually, removing `-nostdlib++` and just relying on `-nodefaultlibs` doesn't help either, the same situation regarding `check_c_compiler_flag()` arises there too - one has to first try to add the flag to `CMAKE_REQUIRED_FLAGS` to see if it has the desired effect, otherwise all cmake tests fail.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112126



More information about the llvm-commits mailing list