[CMake] Always define runtimes-test-depends (#73629)
This allows the parent build to depend on this target unconditionally even when the tests are disabled.
This commit is contained in:
parent
eaab947a8a
commit
4701f776d0
@ -224,12 +224,14 @@ foreach(entry ${runtimes})
|
|||||||
add_subdirectory(${entry} ${projName})
|
add_subdirectory(${entry} ${projName})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
# Define runtimes-test-depends so the parent build can use it unconditionally.
|
||||||
|
add_custom_target(runtimes-test-depends)
|
||||||
|
|
||||||
if(LLVM_INCLUDE_TESTS)
|
if(LLVM_INCLUDE_TESTS)
|
||||||
# LLVM_RUNTIMES_LIT_DEPENDS is populated when lit tests are added between
|
# LLVM_RUNTIMES_LIT_DEPENDS is populated when lit tests are added between
|
||||||
# umbrella_list_testsuite begin and end. The bootstrap runtimes builds
|
# umbrella_list_testsuite begin and end. The bootstrap runtimes builds
|
||||||
# currently assumes this target exists.
|
# currently assumes this target exists.
|
||||||
get_property(LLVM_RUNTIMES_LIT_DEPENDS GLOBAL PROPERTY 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)
|
if(LLVM_RUNTIMES_LIT_DEPENDS)
|
||||||
# add_dependencies complains if called with no dependencies
|
# add_dependencies complains if called with no dependencies
|
||||||
add_dependencies(runtimes-test-depends ${LLVM_RUNTIMES_LIT_DEPENDS})
|
add_dependencies(runtimes-test-depends ${LLVM_RUNTIMES_LIT_DEPENDS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user