[PATCH] D44473: [dotest] Make llvm-dotest a custom target
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 14 08:29:41 PDT 2018
JDevlieghere updated this revision to Diff 138370.
JDevlieghere added a comment.
Yeah, that's more sensible indeed. I must have had `llvm-lit` in mind and never gave it a second thought.
Repository:
rL LLVM
https://reviews.llvm.org/D44473
Files:
test/CMakeLists.txt
test/lldb-dotest.in
test/llvm-dotest.in
Index: test/CMakeLists.txt
===================================================================
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -137,16 +137,19 @@
string (REPLACE ";" " " LLDB_DOTEST_ARGS_STR "${LLDB_DOTEST_ARGS}")
# We need this to substitute variables.
configure_file(
- llvm-dotest.in
- ${CMAKE_CURRENT_BINARY_DIR}/llvm-dotest.configured
+ lldb-dotest.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lldb-dotest.configured
)
# We need this to expand the generator expressions.
file(GENERATE
OUTPUT
- $<TARGET_FILE_DIR:lldb>/llvm-dotest
+ $<TARGET_FILE_DIR:lldb>/lldb-dotest
INPUT
- ${CMAKE_CURRENT_BINARY_DIR}/llvm-dotest.configured
+ ${CMAKE_CURRENT_BINARY_DIR}/lldb-dotest.configured
)
+# Make this a custom target.
+add_custom_target(lldb-dotest)
+add_dependencies(lldb-dotest ${LLDB_TEST_DEPS})
# If we're building with an in-tree clang, then list clang as a dependency
# to run tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44473.138370.patch
Type: text/x-patch
Size: 926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/73cf2025/attachment.bin>
More information about the llvm-commits
mailing list