[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:
Shoaib Meenai 2022-11-30 16:41:31 -08:00
parent de7222b2dd
commit 4eb8458234
1 changed files with 6 additions and 1 deletions

View File

@ -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)