[libcxx-commits] [libcxx] [libc++] Improve diagnostic for libcxxabi missing from the runtimes (PR #208274)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 9 02:52:51 PDT 2026


================
@@ -148,6 +148,12 @@ elseif ("${LIBCXX_CXX_ABI}" STREQUAL "libcxxabi")
     add_library(libcxx-abi-static-objects ALIAS cxxabi_static_objects)
   endif()
 
+  if (NOT TARGET cxxabi_static AND NOT TARGET cxxabi_shared
+      AND NOT TARGET cxxabi_static_objects AND NOT TARGET cxxabi_shared_objects)
+    message(FATAL_ERROR "Can't find any libc++abi target but LIBCXX_CXX_ABI is set to libcxxabi, "
----------------
philnik777 wrote:

Maybe also mention that `system-libcxxabi` could be meant instead?

https://github.com/llvm/llvm-project/pull/208274


More information about the libcxx-commits mailing list