[libcxx-commits] [libcxxabi] ff46b84 - [SystemZ][z/OS] Make LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL available for external unwind library.
Zibi Sarbinowski via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 21 09:36:35 PDT 2023
Author: Zibi Sarbinowski
Date: 2023-04-21T11:36:30-05:00
New Revision: ff46b844165f7b611548333c77246244ec21e104
URL: https://github.com/llvm/llvm-project/commit/ff46b844165f7b611548333c77246244ec21e104
DIFF: https://github.com/llvm/llvm-project/commit/ff46b844165f7b611548333c77246244ec21e104.diff
LOG: [SystemZ][z/OS] Make LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL available for external unwind library.
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.
Reviewed By: #libc_abi, muiez, phosek, SeanP
Differential Revision: https://reviews.llvm.org/D147460
Added:
Modified:
libcxxabi/CMakeLists.txt
Removed:
################################################################################
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt
index 9239274d7af1d..ae89796f6fcf8 100644
--- a/libcxxabi/CMakeLists.txt
+++ b/libcxxabi/CMakeLists.txt
@@ -459,10 +459,10 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM)
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
More information about the libcxx-commits
mailing list