Skip to content

Commit 8d85cd3

Browse files
authored
[libc++] Don't build against libcxxrt by default on FreeBSD (#84484)
The libc++ CMake build aims to provide a general-purpose configuration that matches the canonical LLVM setup (libc++ / libc++abi / libunwind), not the configuration used for compatibility on any given system. For these "compatibility" configurations, we use CMake caches like Apple.cmake and FreeBSD.cmake. Defaulting to libcxxrt on FreeBSD makes it look as though we're trying to build the system compatible configuration on FreeBSD, which isn't really correct and causes confusion more than anything else. Fixes #84476
1 parent 83789ff commit 8d85cd3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libcxx/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ option(LIBCXX_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF)
229229
# ABI Library options ---------------------------------------------------------
230230
if (MSVC)
231231
set(LIBCXX_DEFAULT_ABI_LIBRARY "vcruntime")
232-
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
233-
set(LIBCXX_DEFAULT_ABI_LIBRARY "libcxxrt")
234232
else()
235233
set(LIBCXX_DEFAULT_ABI_LIBRARY "libcxxabi")
236234
endif()

0 commit comments

Comments
 (0)