[Lldb-commits] [lldb] [lldb][rpc] Fix build failures when building lldb-rpc-gen (PR #151603)

Martin Storsjö via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 1 01:21:19 PDT 2025


================
@@ -326,27 +326,19 @@ endif()
 # In a cross-compile build, we need to skip building the generated
 # lldb-rpc sources in the first phase of host build so that they can
 # get built using the just-built Clang toolchain in the second phase.
-if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
-  set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF)
+if ((CMAKE_CROSSCOMPILING OR LLVM_HOST_TRIPLE MATCHES "${LLVM_DEFAULT_TARGET_TRIPLE}") AND
+    CMAKE_SYSTEM_NAME MATCHES "AIX|Android|Darwin|FreeBSD|Linux|NetBSD|OpenBSD|Windows")
+  set(LLDB_CAN_USE_LLDB_RPC_SERVER ON)
----------------
mstorsjo wrote:

Wouldn't this enable this build configuration for macOS universal builds, where we still expect this to fail?

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


More information about the lldb-commits mailing list