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()
384
384
# lldb-rpc sources in the first phase of host build so that they can
385
385
# get built using the just-built Clang toolchain in the second phase.
386
386
if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER )
387
+ set (LLDB_CAN_USE_LLDB_RPC_SERVER OFF )
388
+ else ()
387
389
if ((CMAKE_CROSSCOMPILING OR LLVM_HOST_TRIPLE MATCHES "${LLVM_DEFAULT_TARGET_TRIPLE} " ) AND
388
390
CMAKE_SYSTEM_NAME MATCHES "AIX|Android|Darwin|FreeBSD|Linux|NetBSD|OpenBSD|Windows" )
389
391
set (LLDB_CAN_USE_LLDB_RPC_SERVER ON )
@@ -392,11 +394,16 @@ if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
392
394
endif ()
393
395
endif ()
394
396
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 )
398
400
else ()
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 ()
400
407
endif ()
401
408
402
409
include (LLDBGenerateConfig )
You can’t perform that action at this time.
0 commit comments