Skip to content

Commit 4701f77

Browse files
authored
[CMake] Always define runtimes-test-depends (#73629)
This allows the parent build to depend on this target unconditionally even when the tests are disabled.
1 parent eaab947 commit 4701f77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtimes/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,14 @@ foreach(entry ${runtimes})
224224
add_subdirectory(${entry} ${projName})
225225
endforeach()
226226

227+
# Define runtimes-test-depends so the parent build can use it unconditionally.
228+
add_custom_target(runtimes-test-depends)
229+
227230
if(LLVM_INCLUDE_TESTS)
228231
# LLVM_RUNTIMES_LIT_DEPENDS is populated when lit tests are added between
229232
# umbrella_list_testsuite begin and end. The bootstrap runtimes builds
230233
# currently assumes this target exists.
231234
get_property(LLVM_RUNTIMES_LIT_DEPENDS GLOBAL PROPERTY LLVM_RUNTIMES_LIT_DEPENDS)
232-
add_custom_target(runtimes-test-depends)
233235
if(LLVM_RUNTIMES_LIT_DEPENDS)
234236
# add_dependencies complains if called with no dependencies
235237
add_dependencies(runtimes-test-depends ${LLVM_RUNTIMES_LIT_DEPENDS})

0 commit comments

Comments
 (0)