From 26edb21c29cb3c40b29ab3cd9e926b0d329457d6 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Tue, 11 Feb 2020 18:24:57 -0800 Subject: [PATCH] [runtimes] Add umbrella targets for runtimes This will create e.g. a compiler-rt target that'll build compiler-rt for all configured targets, similar to how the runtimes umbrella target builds all the runtimes for all configured targets. Differential Revision: https://reviews.llvm.org/D74458 --- llvm/runtimes/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 40869f0..64b5a57 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -525,6 +525,11 @@ else() # if this is included from LLVM's CMake add_custom_target(runtimes-test-depends) set(test_targets "") endif() + foreach(runtime_name ${runtime_names}) + add_custom_target(${runtime_name}) + add_custom_target(install-${runtime_name}) + add_custom_target(install-${runtime_name}-stripped) + endforeach() if(LLVM_RUNTIME_DISTRIBUTION_COMPONENTS) foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS}) add_custom_target(${component}) @@ -546,6 +551,11 @@ else() # if this is included from LLVM's CMake add_dependencies(check-runtimes check-runtimes-${name}) add_dependencies(runtimes-test-depends runtimes-test-depends-${name}) endif() + foreach(runtime_name ${runtime_names}) + add_dependencies(${runtime_name} ${runtime_name}-${name}) + add_dependencies(install-${runtime_name} install-${runtime_name}-${name}) + add_dependencies(install-${runtime_name}-stripped install-${runtime_name}-${name}-stripped) + endforeach() endforeach() foreach(multilib ${LLVM_RUNTIME_MULTILIBS}) @@ -558,6 +568,11 @@ else() # if this is included from LLVM's CMake add_dependencies(runtimes-configure runtimes-${name}+${multilib}-configure) add_dependencies(install-runtimes install-runtimes-${name}+${multilib}) add_dependencies(install-runtimes-stripped install-runtimes-${name}+${multilib}-stripped) + foreach(runtime_name ${runtime_names}) + add_dependencies(${runtime_name} ${runtime_name}-${name}+${multilib}) + add_dependencies(install-${runtime_name} install-${runtime_name}-${name}+${multilib}) + add_dependencies(install-${runtime_name}-stripped install-${runtime_name}-${name}+${multilib}-stripped) + endforeach() endforeach() endforeach() endif() -- 2.7.4