[libcxx-commits] [libcxxabi] [libc++abi] Provide an explicit error when trying to build for MSVC (PR #119370)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 10 04:43:14 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxxabi
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
Fixes #<!-- -->119322
---
Full diff: https://github.com/llvm/llvm-project/pull/119370.diff
1 Files Affected:
- (modified) libcxxabi/CMakeLists.txt (+5)
``````````diff
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt
index da0e8b286cddc1..158d61ff4fcb25 100644
--- a/libcxxabi/CMakeLists.txt
+++ b/libcxxabi/CMakeLists.txt
@@ -34,6 +34,11 @@ MACRO_ENSURE_OUT_OF_SOURCE_BUILD(
build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there."
)
+if (MSVC)
+ message(FATAL_ERROR "Libc++abi can't be built for MSVC targets, and doing so is pointless anyway because such "
+ "targets must use the MS C++ ABI, and libc++abi provides the Itanium C++ ABI.")
+endif()
+
#===============================================================================
# Setup CMake Options
#===============================================================================
``````````
</details>
https://github.com/llvm/llvm-project/pull/119370
More information about the libcxx-commits
mailing list