summaryrefslogtreecommitdiffstats
path: root/lldb/cmake/modules/AddLLDB.cmake
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-08 00:21:34 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-08 00:21:34 +0000
commit37cf39df20825980adf55143005b553bb7e12047 (patch)
treecd5041e6e0a253a8673d351c607f932cc649d7d8 /lldb/cmake/modules/AddLLDB.cmake
parent6f23e5f6d52b21d479c1faed6054c545f24dff27 (diff)
downloadbcm5719-llvm-37cf39df20825980adf55143005b553bb7e12047.tar.gz
bcm5719-llvm-37cf39df20825980adf55143005b553bb7e12047.zip
[CMake] Track test dependencies with add_lldb_test_dependency
I often use `ninja lldb-test-deps` to build all the test dependencies before running a subset of the tests with `lit --filter`. This functionality seems to break relatively often because test dependencies are tracked in an ad-hoc way acrooss cmake files. This patch adds a helper function `add_lldb_test_dependency` to unify test dependency tracking by adding dependencies to lldb-test-deps. Differential revision: https://reviews.llvm.org/D68612 llvm-svn: 373996
Diffstat (limited to 'lldb/cmake/modules/AddLLDB.cmake')
-rw-r--r--lldb/cmake/modules/AddLLDB.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index c6a7979279a..f6402f94385 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -27,6 +27,10 @@ function(lldb_tablegen)
endif()
endfunction(lldb_tablegen)
+function(add_lldb_test_dependency name)
+ add_dependencies(lldb-test-deps ${name})
+endfunction(add_lldb_test_dependency)
+
function(add_lldb_library name)
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}
OpenPOWER on IntegriCloud