summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Granitz <stefan.graenitz@gmail.com>2019-01-04 12:46:38 +0000
committerStefan Granitz <stefan.graenitz@gmail.com>2019-01-04 12:46:38 +0000
commitd0dc161f62f783a6c48db21a601c1b062ce0f2d0 (patch)
tree2e0fc3f3457fa3d40e7ef3b4e892e6d4c6214a65
parentfd6fedfbe09cb66ec7498dd0330ea1bfd3d9d49d (diff)
downloadbcm5719-llvm-d0dc161f62f783a6c48db21a601c1b062ce0f2d0.tar.gz
bcm5719-llvm-d0dc161f62f783a6c48db21a601c1b062ce0f2d0.zip
[CMake] Move debugserver options to separate debugserverConfig.cmake
Summary: One place for debugserver options, analog to LLDBConfig for LLDB options (see D55317). It was discussed in earlier reviews already, e.g. D55013. Reviewers: JDevlieghere, aprantl, xiaobai Reviewed By: aprantl, xiaobai Subscribers: mgorny, lldb-commits, #lldb Differential Revision: https://reviews.llvm.org/D55320 llvm-svn: 350390
-rw-r--r--lldb/cmake/modules/debugserverConfig.cmake3
-rw-r--r--lldb/tools/debugserver/CMakeLists.txt3
2 files changed, 4 insertions, 2 deletions
diff --git a/lldb/cmake/modules/debugserverConfig.cmake b/lldb/cmake/modules/debugserverConfig.cmake
new file mode 100644
index 00000000000..3b716ca8771
--- /dev/null
+++ b/lldb/cmake/modules/debugserverConfig.cmake
@@ -0,0 +1,3 @@
+# Duplicate options from LLDBConfig that are relevant for debugserver Standalone builds.
+
+option(LLDB_USE_ENTITLEMENTS "When code signing, use entitlements if available" ON)
diff --git a/lldb/tools/debugserver/CMakeLists.txt b/lldb/tools/debugserver/CMakeLists.txt
index 53f89fd5bda..73f7945a564 100644
--- a/lldb/tools/debugserver/CMakeLists.txt
+++ b/lldb/tools/debugserver/CMakeLists.txt
@@ -10,13 +10,12 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
)
include(LLDBStandalone)
+ include(debugserverConfig)
include(AddLLDB)
set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../")
include_directories(${LLDB_SOURCE_DIR}/include)
- option(LLDB_USE_ENTITLEMENTS "When code signing, use entitlements if available" ON)
-
# lldb-suite is a dummy target that encompasses all the necessary tools and
# libraries for building a fully-functioning liblldb.
add_custom_target(lldb-suite)
OpenPOWER on IntegriCloud