Skip to content

Commit 3b3465d

Browse files
committed
[libc++abi] Provide an explicit error when trying to build for MSVC
Fixes #119322
1 parent cb4433b commit 3b3465d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxxabi/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ MACRO_ENSURE_OUT_OF_SOURCE_BUILD(
3434
build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there."
3535
)
3636

37+
if (MSVC)
38+
message(FATAL_ERROR "Libc++abi can't be built for MSVC targets, and doing so is pointless anyway because such "
39+
"targets must use the MS C++ ABI, and libc++abi provides the Itanium C++ ABI.")
40+
endif()
41+
3742
#===============================================================================
3843
# Setup CMake Options
3944
#===============================================================================

0 commit comments

Comments
 (0)