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 @@ -327,6 +327,8 @@ endif()
327
327
# lldb-rpc sources in the first phase of host build so that they can
328
328
# get built using the just-built Clang toolchain in the second phase.
329
329
if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER )
330
+ set (LLDB_CAN_USE_LLDB_RPC_SERVER OFF )
331
+ else ()
330
332
if ((CMAKE_CROSSCOMPILING OR LLVM_HOST_TRIPLE MATCHES "${LLVM_DEFAULT_TARGET_TRIPLE} " ) AND
331
333
CMAKE_SYSTEM_NAME MATCHES "AIX|Android|Darwin|FreeBSD|Linux|NetBSD|OpenBSD|Windows" )
332
334
set (LLDB_CAN_USE_LLDB_RPC_SERVER ON )
@@ -335,11 +337,16 @@ if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
335
337
endif ()
336
338
endif ()
337
339
338
- if ( CMAKE_CROSSCOMPILING )
339
- set ( LLDB_BUILD_LLDBRPC OFF CACHE BOOL "" )
340
- get_host_tool_path ( lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target )
340
+
341
+ if ( NOT DEFINED LLDB_BUILD_LLDBRPC )
342
+ set ( LLDB_BUILD_LLDBRPC OFF )
341
343
else ()
342
- set (LLDB_BUILD_LLDBRPC ON CACHE BOOL "" )
344
+ if (CMAKE_CROSSCOMPILING )
345
+ set (LLDB_BUILD_LLDBRPC OFF CACHE BOOL "" )
346
+ get_host_tool_path (lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target )
347
+ else ()
348
+ set (LLDB_BUILD_LLDBRPC ON CACHE BOOL "" )
349
+ endif ()
343
350
endif ()
344
351
345
352
include (LLDBGenerateConfig )
You can’t perform that action at this time.
0 commit comments