[libcxx-commits] [PATCH] D129469: [libcxxabi][CMake] Set --unwindlib=none when using LLVM libunwind
Petr Hosek via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 14 11:59:57 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1f3f4833eae7: [libcxxabi][CMake] Set --unwindlib=none when using LLVM libunwind (authored by phosek).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129469/new/
https://reviews.llvm.org/D129469
Files:
libcxxabi/src/CMakeLists.txt
Index: libcxxabi/src/CMakeLists.txt
===================================================================
--- libcxxabi/src/CMakeLists.txt
+++ libcxxabi/src/CMakeLists.txt
@@ -99,6 +99,13 @@
add_link_flags_if_supported(-nodefaultlibs)
endif()
+if (CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG AND LIBCXXABI_USE_LLVM_UNWINDER)
+ # If we're linking directly against the libunwind that we're building
+ # in the same invocation, don't try to link in the toolchain's
+ # default libunwind (which may be missing still).
+ add_link_flags_if_supported(--unwindlib=none)
+endif()
+
if ( APPLE )
if (LLVM_USE_SANITIZER)
if (("${LLVM_USE_SANITIZER}" STREQUAL "Address") OR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129469.444757.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220714/2659d816/attachment.bin>
More information about the libcxx-commits
mailing list