Restore missing runtimes-test-depends target that causes build failures when LLVM_INCLUDE_TESTS is ON

7cc8377f removed the 'runtimes-test-depends' target in runtimes builds that
is assumed to exist when using a bootstrapped runtime build.

For a full analysis, see:
https://discourse.llvm.org/t/looking-for-guidance-on-broken-downstream-bootstrapped-runtimes-builds/62934

Differential Revision: https://reviews.llvm.org/D127325
This commit is contained in:
James Nagurne 2022-06-02 17:30:55 -05:00
parent 6ef9af6386
commit f4fdc4f4d9
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,10 @@ foreach(entry ${runtimes})
endforeach()
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})
# 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)