forked from OSchip/llvm-project
[CMake] Fix add_lldb_test_dependency
This function would ignore all but the first argument. Now it correctly adds every dependency by iterating over its arguments. llvm-svn: 374216
This commit is contained in:
parent
be1c290226
commit
d61ef7c46d
|
@ -27,8 +27,10 @@ function(lldb_tablegen)
|
|||
endif()
|
||||
endfunction(lldb_tablegen)
|
||||
|
||||
function(add_lldb_test_dependency name)
|
||||
add_dependencies(lldb-test-deps ${name})
|
||||
function(add_lldb_test_dependency)
|
||||
foreach(dependency ${ARGN})
|
||||
add_dependencies(lldb-test-deps ${dependency})
|
||||
endforeach()
|
||||
endfunction(add_lldb_test_dependency)
|
||||
|
||||
function(add_lldb_library name)
|
||||
|
|
|
@ -70,6 +70,14 @@ else()
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT LLDB_BUILT_STANDALONE)
|
||||
add_lldb_test_dependency(
|
||||
FileCheck
|
||||
count
|
||||
not
|
||||
)
|
||||
endif()
|
||||
|
||||
# the value is not canonicalized within LLVM
|
||||
llvm_canonicalize_cmake_booleans(
|
||||
LLDB_DISABLE_PYTHON
|
||||
|
@ -100,14 +108,6 @@ configure_file(
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/Shell/lit-lldb-init.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/Shell/lit-lldb-init)
|
||||
|
||||
if(NOT LLDB_BUILT_STANDALONE)
|
||||
add_lldb_test_dependency(
|
||||
FileCheck
|
||||
count
|
||||
not
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
add_lit_testsuites(LLDB
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
|
|
Loading…
Reference in New Issue