[Lldb-commits] [PATCH] D25490: [CMake] Cleanup check-lldb targets
Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 12 13:35:25 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL284046: [CMake] Cleanup check-lldb targets (authored by cbieneman).
Changed prior to commit:
https://reviews.llvm.org/D25490?vs=74296&id=74434#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25490
Files:
lldb/trunk/test/CMakeLists.txt
Index: lldb/trunk/test/CMakeLists.txt
===================================================================
--- lldb/trunk/test/CMakeLists.txt
+++ lldb/trunk/test/CMakeLists.txt
@@ -8,9 +8,25 @@
add_custom_target(${name}
COMMAND ${PYTHON_TEST_COMMAND} ${ARG_DEFAULT_ARGS}
COMMENT "${comment}"
+ DEPENDS ${LLDB_TEST_DEPS}
+ USES_TERMINAL
)
endfunction()
+set(LLDB_TEST_DEPS lldb)
+
+if(TARGET lldb-server)
+ list(APPEND LLDB_TEST_DEPS lldb-server)
+endif()
+
+if(TARGET debugserver)
+ list(APPEND LLDB_TEST_DEPS debugserver)
+endif()
+
+if(TARGET lldb-mi)
+ list(APPEND LLDB_TEST_DEPS lldb-mi)
+endif()
+
if ("${LLDB_TEST_COMPILER}" STREQUAL "")
string(REGEX REPLACE ".*ccache\ +" "" LLDB_TEST_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1})
endif()
@@ -34,8 +50,7 @@
set(LLDB_TEST_COMMON_ARGS
--arch=${LLDB_TEST_ARCH}
- --executable
- ${CMAKE_BINARY_DIR}/bin/lldb${CMAKE_EXECUTABLE_SUFFIX}
+ --executable $<TARGET_FILE:lldb>
-s
${CMAKE_BINARY_DIR}/lldb-test-traces
-S nm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25490.74434.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161012/2b3c33cf/attachment.bin>
More information about the lldb-commits
mailing list