[Lldb-commits] [lldb] [lldb] Skip libc++ category tests on Darwin when no in-tree libc++ is built (PR #199262)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 1 14:55:00 PDT 2026


================
@@ -205,13 +205,16 @@ if(TARGET clang)
             "LLDB_TEST_LIBCXX_ROOT_DIR to it.")
       endif()
     else()
-      # We require libcxx for the test suite, so if we aren't building it,
-      # provide a helpful error about how to resolve the situation.
+      # The LLDB test suite uses libc++ for many tests. If it isn't being
+      # built in-tree, warn and let the suite fall back to whatever libc++
+      # the compiler picks up by default (the system one on Darwin); the
+      # libc++-specific tests will be skipped or run against system libc++.
       if(NOT LLDB_HAS_LIBCXX)
-        message(SEND_ERROR
-          "LLDB test suite requires libc++, but it is currently disabled. "
-          "Please add `libcxx` to `LLVM_ENABLE_RUNTIMES` or disable tests via "
-          "`LLDB_INCLUDE_TESTS=OFF`.")
+        message(WARNING
+          "LLDB test suite normally uses an in-tree libc++; it is currently "
----------------
medismailben wrote:

I spoke with @JDevlieghere offline and we agreed that until we transition to not having to build an in-tree libcxx  upstream, we will still need that warning and a setting to silence it.

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


More information about the lldb-commits mailing list