-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[lldb][rpc] Disable building lldb-rpc-gen tool #150699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-lldb Author: Chelsea Cassanova (chelcassanova) ChangesDisabling the lldb-rpc-gen tool while issues with certain builds are solved: #148996 Full diff: https://github.com/llvm/llvm-project/pull/150699.diff 1 Files Affected:
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 1bc494a48cb03..606639a3c5373 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -329,7 +329,7 @@ endif()
if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
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)
+ set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF)
else()
set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF)
endif()
@@ -339,7 +339,7 @@ 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 "")
+ set(LLDB_BUILD_LLDBRPC OFF CACHE BOOL "")
endif()
include(LLDBGenerateConfig)
|
|
@chelcassanova , you just completely disable RPC with there changes and there is no way to turn it ON. I would like to propose using either (with additional checks inside of these conditions if necessary). The second variant could be optimal as a quick fix. |
cd91a8c to
9890570
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is the best/nicest fix, but it works for unbreaking my builds, so thanks!
9890570 to
e2aeab7
Compare
Disabling the lldb-rpc-gen tool while issues with certain builds are solved: llvm#148996
e2aeab7 to
5b3bf87
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
Disabling the lldb-rpc-gen tool while issues with certain builds are solved: llvm#148996
Disabling the lldb-rpc-gen tool while issues with certain builds are solved: llvm#148996 (cherry picked from commit 67b5195)
Disabling the lldb-rpc-gen tool while issues with certain builds are solved: #148996