https://github.com/chelcassanova updated https://github.com/llvm/llvm-project/pull/150699
>From e2aeab7dfb6a7db3f43a9a714d3b00de36ecf5f3 Mon Sep 17 00:00:00 2001 From: Chelsea Cassanova <chelsea_cassan...@apple.com> Date: Fri, 25 Jul 2025 13:43:43 -0700 Subject: [PATCH] [lldb][rpc] Disable building lldb-rpc-gen tool Disabling the lldb-rpc-gen tool while issues with certain builds are solved: https://github.com/llvm/llvm-project/pull/148996 --- lldb/cmake/modules/LLDBConfig.cmake | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake index 1bc494a48cb03..9822a5dceb4e0 100644 --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -323,6 +323,10 @@ else() set(LLDB_CAN_USE_DEBUGSERVER OFF) endif() +if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER) + set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF) +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. @@ -335,11 +339,16 @@ if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER) endif() endif() -if (CMAKE_CROSSCOMPILING) - set(LLDB_BUILD_LLDBRPC OFF CACHE BOOL "") - get_host_tool_path(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target) + +if (NOT DEFINED LLDB_BUILD_LLDBRPC) + set(LLDB_BUILD_LLDBRPC OFF) else() - set(LLDB_BUILD_LLDBRPC ON CACHE BOOL "") + if (CMAKE_CROSSCOMPILING) + set(LLDB_BUILD_LLDBRPC OFF CACHE BOOL "") + get_host_tool_path(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target) + else() + set(LLDB_BUILD_LLDBRPC ON CACHE BOOL "") + endif() endif() include(LLDBGenerateConfig) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits