diff options
author | Chelsea Cassanova <chelsea_cassanova@apple.com> | 2025-07-25 15:25:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 15:25:05 -0700 |
commit | 67b519577ee6b3743c6c03c6230991cede5648a5 (patch) | |
tree | ffda7a64b8e0bd9198e99f9f2d32ef60835674dd /lldb | |
parent | f6e70c7d47d5a184aaf4334c63c1674c55741fc3 (diff) | |
download | llvm-67b519577ee6b3743c6c03c6230991cede5648a5.zip llvm-67b519577ee6b3743c6c03c6230991cede5648a5.tar.gz llvm-67b519577ee6b3743c6c03c6230991cede5648a5.tar.bz2 |
[lldb][rpc] Disable building lldb-rpc-gen tool (#150699)
Disabling the lldb-rpc-gen tool while issues with certain builds are
solved: https://github.com/llvm/llvm-project/pull/148996
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/cmake/modules/LLDBConfig.cmake | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake index 1bc494a..fc84e58 100644 --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -327,6 +327,8 @@ endif() # 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) +else() 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) @@ -335,11 +337,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) |