[libcxx-commits] [PATCH] D124375: [runtimes] [cmake] Fix -Werror detection in common build configs
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 26 00:11:32 PDT 2022
mstorsjo added inline comments.
================
Comment at: libcxx/cmake/config-ix.cmake:15
# link with --uwnindlib=none. Check if that option works.
llvm_check_compiler_linker_flag(C "--unwindlib=none" CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG)
----------------
mstorsjo wrote:
> phosek wrote:
> > Should we drop this check as well since this is done in `runtimes/CMakeLists.txt`?
> I guess we could do that too, now that using `runtimes/` is mandatory. In one sense, it's a bit of a bigger step than before though - then libcxx would start relying on specific cmake variables being set, without the code for setting the variables residing in libcxx itself.
Actually, we can't drop it just like that without further changes. In `runtimes/CMakeLists.txt` we only check for this option if it seems to be needed (if linking fails without it), while libcxx uses the result of this check if `LIBCXXABI_USE_LLVM_UNWINDER` is set.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124375/new/
https://reviews.llvm.org/D124375
More information about the libcxx-commits
mailing list