diff options
author | Shoaib Meenai <smeenai@fb.com> | 2022-11-30 16:41:31 -0800 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2022-11-30 16:55:51 -0800 |
commit | 4eb84582344f97167b6a2b4cb1fb1d75ae07897e (patch) | |
tree | 1f5d5b86347dab42200732293a4ab42a1b1b0500 /runtimes | |
parent | de7222b2ddfc00fe969ef91127b9e2fee68abe42 (diff) | |
download | llvm-4eb84582344f97167b6a2b4cb1fb1d75ae07897e.zip llvm-4eb84582344f97167b6a2b4cb1fb1d75ae07897e.tar.gz llvm-4eb84582344f97167b6a2b4cb1fb1d75ae07897e.tar.bz2 |
[runtimes] Fix runtimes-test-depends
The dependency list is stored in a global property, so we need to fetch
it to a variable before using that variable. We also need to add the
list contents as dependencies correctly.
Diffstat (limited to 'runtimes')
-rw-r--r-- | runtimes/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index df279bb..39c58f9 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -232,7 +232,12 @@ 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}) + 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}) + endif() # 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) |