Restore missing runtimes-test-depends target that causes build failures when LLVM_INC...
authorJames Nagurne <j-nagurne@ti.com>
Thu, 2 Jun 2022 22:30:55 +0000 (17:30 -0500)
committerJames Nagurne <j-nagurne@ti.com>
Mon, 13 Jun 2022 20:47:38 +0000 (15:47 -0500)
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

runtimes/CMakeLists.txt

index 35b9b65..1b8c1c0 100644 (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)