[runtimes] Fix runtimes-test-depends
The dependency list is stored in a global property, so we need to fetch it to a variable before using that variable. We also need to add the list contents as dependencies correctly.
This commit is contained in:
parent
de7222b2dd
commit
4eb8458234
|
@ -232,7 +232,12 @@ if(LLVM_INCLUDE_TESTS)
|
|||
# LLVM_RUNTIMES_LIT_DEPENDS is populated when lit tests are added between
|
||||
# umbrella_list_testsuite begin and end. The bootstrap runtimes builds
|
||||
# currently assumes this target exists.
|
||||
add_custom_target(runtimes-test-depends ${LLVM_RUNTIMES_LIT_DEPENDS})
|
||||
get_property(LLVM_RUNTIMES_LIT_DEPENDS GLOBAL PROPERTY LLVM_RUNTIMES_LIT_DEPENDS)
|
||||
add_custom_target(runtimes-test-depends)
|
||||
if(LLVM_RUNTIMES_LIT_DEPENDS)
|
||||
# add_dependencies complains if called with no dependencies
|
||||
add_dependencies(runtimes-test-depends ${LLVM_RUNTIMES_LIT_DEPENDS})
|
||||
endif()
|
||||
# Add a global check rule now that all subdirectories have been traversed
|
||||
# and we know the total set of lit testsuites.
|
||||
umbrella_lit_testsuite_end(check-runtimes)
|
||||
|
|
Loading…
Reference in New Issue