summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorAlex Langford <apl@fb.com>2018-08-23 18:05:45 +0000
committerAlex Langford <apl@fb.com>2018-08-23 18:05:45 +0000
commit520201babb792eec7062630a9c3d48b13baeb701 (patch)
tree539c8dcea582f1cb0980c3d7192991e197af64e2 /lldb
parent368540f6ee070f4d2783c2ccf8b5ec3ea22f6efc (diff)
downloadbcm5719-llvm-520201babb792eec7062630a9c3d48b13baeb701.tar.gz
bcm5719-llvm-520201babb792eec7062630a9c3d48b13baeb701.zip
[cmake] Add option to skip building lldb-server
Summary: There is currently a way to skip the debugserver build. See how the CMake variables SKIP_DEBUGSERVER and LLDB_CODESIGN_IDENTITY are used if you're interested in that. This allows us to skip building lldb-server as well. There is another debug server called ds2 that can be used with LLDB. If you choose to use ds2, this flag is very useful because it can cut down the build time of LLDB. Differential Revision: https://reviews.llvm.org/D49282 llvm-svn: 340560
Diffstat (limited to 'lldb')
-rw-r--r--lldb/cmake/modules/LLDBConfig.cmake2
-rw-r--r--lldb/tools/CMakeLists.txt2
-rw-r--r--lldb/unittests/tools/CMakeLists.txt2
3 files changed, 4 insertions, 2 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 54da0706c9a..46e841b148a 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -357,6 +357,8 @@ endif()
list(APPEND system_libs ${CMAKE_DL_LIBS})
+SET(SKIP_LLDB_SERVER_BUILD OFF CACHE BOOL "Skip building lldb-server")
+
# Figure out if lldb could use lldb-server. If so, then we'll
# ensure we build lldb-server when an lldb target is being built.
if (CMAKE_SYSTEM_NAME MATCHES "Android|Darwin|FreeBSD|Linux|NetBSD")
diff --git a/lldb/tools/CMakeLists.txt b/lldb/tools/CMakeLists.txt
index 6afcb4c37f2..4f56dd8d02f 100644
--- a/lldb/tools/CMakeLists.txt
+++ b/lldb/tools/CMakeLists.txt
@@ -6,7 +6,7 @@ add_subdirectory(argdumper)
add_subdirectory(driver)
add_subdirectory(lldb-mi)
add_subdirectory(lldb-vscode)
-if (LLDB_CAN_USE_LLDB_SERVER)
+if (LLDB_CAN_USE_LLDB_SERVER AND NOT SKIP_LLDB_SERVER_BUILD)
add_subdirectory(lldb-server)
endif()
add_subdirectory(intel-features)
diff --git a/lldb/unittests/tools/CMakeLists.txt b/lldb/unittests/tools/CMakeLists.txt
index e4fc3e62c08..bce076ee91e 100644
--- a/lldb/unittests/tools/CMakeLists.txt
+++ b/lldb/unittests/tools/CMakeLists.txt
@@ -1,5 +1,5 @@
if(CMAKE_SYSTEM_NAME MATCHES "Android|Darwin|Linux|NetBSD")
- if (CMAKE_SYSTEM_NAME MATCHES "Darwin" AND SKIP_DEBUGSERVER)
+ if ((CMAKE_SYSTEM_NAME MATCHES "Darwin" AND SKIP_DEBUGSERVER) OR (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" AND SKIP_LLDB_SERVER_BUILD))
# These tests are meant to test lldb-server/debugserver in isolation, and
# don't provide any value if run against a server copied from somewhere.
else()
OpenPOWER on IntegriCloud