File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,8 @@ endif()
384384# lldb-rpc sources in the first phase of host build so that they can
385385# get built using the just-built Clang toolchain in the second phase.
386386if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
387+ set (LLDB_CAN_USE_LLDB_RPC_SERVER OFF )
388+ else ()
387389 if ((CMAKE_CROSSCOMPILING OR LLVM_HOST_TRIPLE MATCHES "${LLVM_DEFAULT_TARGET_TRIPLE} " ) AND
388390 CMAKE_SYSTEM_NAME MATCHES "AIX|Android|Darwin|FreeBSD|Linux|NetBSD|OpenBSD|Windows" )
389391 set (LLDB_CAN_USE_LLDB_RPC_SERVER ON )
@@ -392,11 +394,16 @@ if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
392394 endif ()
393395endif ()
394396
395- if ( CMAKE_CROSSCOMPILING )
396- set (LLDB_BUILD_LLDBRPC OFF CACHE BOOL "" )
397- get_host_tool_path(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target )
397+
398+ if ( NOT DEFINED LLDB_BUILD_LLDBRPC )
399+ set (LLDB_BUILD_LLDBRPC OFF )
398400else ()
399- set (LLDB_BUILD_LLDBRPC ON CACHE BOOL "" )
401+ if (CMAKE_CROSSCOMPILING )
402+ set (LLDB_BUILD_LLDBRPC OFF CACHE BOOL "" )
403+ get_host_tool_path(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target)
404+ else ()
405+ set (LLDB_BUILD_LLDBRPC ON CACHE BOOL "" )
406+ endif ()
400407endif ()
401408
402409include (LLDBGenerateConfig)
You can’t perform that action at this time.
0 commit comments