diff options
author | Shoaib Meenai <smeenai@fb.com> | 2022-11-29 17:41:57 -0800 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2022-11-30 11:14:37 -0800 |
commit | 8947f26b8822a3dde6c0fe192a789de880d4afcb (patch) | |
tree | 544aa94e5f38f59537ed2ab4c6c779a8485db9f0 /llvm/runtimes | |
parent | a323e515eee85121c6b85f08eef5acc427d22f83 (diff) | |
download | llvm-8947f26b8822a3dde6c0fe192a789de880d4afcb.zip llvm-8947f26b8822a3dde6c0fe192a789de880d4afcb.tar.gz llvm-8947f26b8822a3dde6c0fe192a789de880d4afcb.tar.bz2 |
[runtimes] Create check- targets for LLVM_RUNTIME_DISTRIBUTION_COMPONENTS
The sub-component check targets won't be automatically created until the
runtime configurations have run (and the main LLVM configure has rerun
afterwards). Work around this by creating check- targets for components
in LLVM_RUNTIME_DISTRIBUTION_COMPONENTS as well (and making sure they
get the proper test dependencies).
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D138967
Diffstat (limited to 'llvm/runtimes')
-rw-r--r-- | llvm/runtimes/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 76ad1d6..b37c893 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -301,7 +301,15 @@ function(runtime_register_target name target) set(check-runtimes-${name} check-runtimes) list(APPEND ${name}_test_targets runtimes-test-depends-${name} check-runtimes-${name}) list(APPEND test_targets ${${name}_test_targets}) - foreach(target_name IN LISTS SUB_CHECK_TARGETS) + + set(component_check_targets) + foreach(component IN LISTS LLVM_RUNTIME_DISTRIBUTION_COMPONENTS) + if(NOT "check-${component}" IN_LIST SUB_CHECK_TARGETS) + list(APPEND component_check_targets "check-${component}") + endif() + endforeach() + + foreach(target_name IN LISTS SUB_CHECK_TARGETS component_check_targets) set(${target_name}-${name} ${target_name}) list(APPEND ${name}_test_targets ${target_name}-${name}) list(APPEND test_targets ${target_name}-${name}) |