diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -301,7 +301,15 @@ 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})