[libcxx-commits] [PATCH] D147460: Make LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL available for external unwind library.
Zibi Sarbino via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 3 11:24:25 PDT 2023
zibi created this revision.
Herald added a project: All.
zibi requested review of this revision.
Herald added a project: libc++abi.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++abi.
On z/OS, we need to pass the location of unwind interface header when building cxxabi. The cmake macro `LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL` is available for this purpose but it is only used with conjunction with `LIBCXXABI_USE_LLVM_UNWINDER`. For the external unwind library we need to use LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL unconditionally whenever it is set.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147460
Files:
libcxxabi/CMakeLists.txt
Index: libcxxabi/CMakeLists.txt
===================================================================
--- libcxxabi/CMakeLists.txt
+++ libcxxabi/CMakeLists.txt
@@ -459,10 +459,10 @@
if (LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL STREQUAL "LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL-NOTFOUND")
set(LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL "")
endif()
+endif()
- if (NOT LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL STREQUAL "")
- include_directories("${LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL}")
- endif()
+if (NOT LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL STREQUAL "")
+ include_directories("${LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL}")
endif()
# Add source code. This also contains all of the logic for deciding linker flags
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147460.510571.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230403/4273fd88/attachment.bin>
More information about the libcxx-commits
mailing list