[libcxx-commits] [libcxxabi] fix cmake config error in llvm-libgcc (PR #187280)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 18 07:14:45 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxxabi
Author: Andrew Marshall (planetmarshall)
<details>
<summary>Changes</summary>
Allow libcxxabi to build if libunwind is not present in `LLVM_ENABLE_RUNTIMES`, provided `llvm-libgcc` is enabled.
Closes #<!-- -->100888
---
Full diff: https://github.com/llvm/llvm-project/pull/187280.diff
1 Files Affected:
- (modified) libcxxabi/CMakeLists.txt (+1-1)
``````````diff
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt
index 2b67c5972339e..1a76e19f7d7b3 100644
--- a/libcxxabi/CMakeLists.txt
+++ b/libcxxabi/CMakeLists.txt
@@ -53,7 +53,7 @@ option(LIBCXXABI_ENABLE_ASSERTIONS "Enable assertions independent of build mode.
option(LIBCXXABI_ENABLE_PEDANTIC "Compile with pedantic enabled." OFF)
option(LIBCXXABI_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
option(LIBCXXABI_USE_LLVM_UNWINDER "Build and use the LLVM unwinder." ON)
-if (LIBCXXABI_USE_LLVM_UNWINDER AND NOT "libunwind" IN_LIST LLVM_ENABLE_RUNTIMES)
+if (LIBCXXABI_USE_LLVM_UNWINDER AND (NOT "libunwind" IN_LIST LLVM_ENABLE_RUNTIMES AND NOT LLVM_LIBGCC_EXPLICIT_OPT_IN))
message(FATAL_ERROR "LIBCXXABI_USE_LLVM_UNWINDER is set to ON, but libunwind is not specified in LLVM_ENABLE_RUNTIMES.")
endif()
option(LIBCXXABI_ENABLE_STATIC_UNWINDER "Statically link the LLVM unwinder." OFF)
``````````
</details>
https://github.com/llvm/llvm-project/pull/187280
More information about the libcxx-commits
mailing list