0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-21 12:56:52 +00:00

[libc++abi] Provide an explicit error when trying to build for MSVC ()

Fixes 
This commit is contained in:
Louis Dionne 2024-12-11 12:49:06 -05:00 committed by GitHub
parent 7b2d592a19
commit b0b546d447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

@ -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
#===============================================================================

@ -24,6 +24,11 @@ set(LIBUNWIND_LIBCXX_PATH "${CMAKE_CURRENT_LIST_DIR}/../libcxx" CACHE PATH
include(GNUInstallDirs)
include(CheckSymbolExists)
if (MSVC)
message(FATAL_ERROR "Libunwind doesn't build for MSVC targets, and that is almost certainly not what you want to do "
"anyway since libunwind is tied to the Itanium C++ ABI, and MSVC targets must use the MS C++ ABI.")
endif()
#===============================================================================
# Setup CMake Options
#===============================================================================