diff options
author | Petr Hosek <phosek@google.com> | 2023-11-28 15:30:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 15:30:52 -0800 |
commit | 4701f776d0f22dc0ff80a7d33ef3ae031eac9c2f (patch) | |
tree | 2073a6493161e3a485023ddd3e923a9dc50381e3 /runtimes | |
parent | eaab947a8aa39002e8bdaa82be08cbc31e116a11 (diff) | |
download | llvm-4701f776d0f22dc0ff80a7d33ef3ae031eac9c2f.zip llvm-4701f776d0f22dc0ff80a7d33ef3ae031eac9c2f.tar.gz llvm-4701f776d0f22dc0ff80a7d33ef3ae031eac9c2f.tar.bz2 |
[CMake] Always define runtimes-test-depends (#73629)
This allows the parent build to depend on this target unconditionally
even when the tests are disabled.
Diffstat (limited to 'runtimes')
-rw-r--r-- | runtimes/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index 010ec87..7423343 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -224,12 +224,14 @@ foreach(entry ${runtimes}) add_subdirectory(${entry} ${projName}) endforeach() +# Define runtimes-test-depends so the parent build can use it unconditionally. +add_custom_target(runtimes-test-depends) + 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. 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}) |