Skip to content

Commit

Permalink
[dotest] Rename llvm-dotest -> lldb-dotest and make it a custom target
Browse files Browse the repository at this point in the history
This renames llvm-dotest to lldb-dotest and makes it a custom target so
you can run `ninja lldb-dotest` to rebuild whatever is necessary before
rerunning the tests.

Differential revision: https://reviews.llvm.org/D44473

llvm-svn: 327519
  • Loading branch information
JDevlieghere committed Mar 14, 2018
1 parent 5773ac3 commit 22af9c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lldb/test/CMakeLists.txt
Expand Up @@ -137,16 +137,19 @@ add_python_test_target(check-lldb
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.
Expand Down
File renamed without changes.

0 comments on commit 22af9c6

Please sign in to comment.