[PATCH] D46705: [CMake] Support runtimes in distributions
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 17 10:02:39 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332631: [CMake] Support runtimes in distributions (authored by cbieneman, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D46705
Files:
llvm/trunk/CMakeLists.txt
llvm/trunk/runtimes/CMakeLists.txt
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -998,7 +998,7 @@
add_custom_target(distribution)
add_custom_target(install-distribution)
add_custom_target(install-distribution-stripped)
- foreach(target ${LLVM_DISTRIBUTION_COMPONENTS})
+ foreach(target ${LLVM_DISTRIBUTION_COMPONENTS} ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
if(TARGET ${target})
add_dependencies(distribution ${target})
else()
Index: llvm/trunk/runtimes/CMakeLists.txt
===================================================================
--- llvm/trunk/runtimes/CMakeLists.txt
+++ llvm/trunk/runtimes/CMakeLists.txt
@@ -352,6 +352,11 @@
list(APPEND test_targets check-${runtime_name})
endif()
endforeach()
+ foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
+ if(NOT ${component} IN_LIST SUB_COMPONENTS)
+ list(APPEND extra_targets ${component} install-${component} install-${component}-stripped)
+ endif()
+ endforeach()
if(LLVM_INCLUDE_TESTS)
list(APPEND test_targets runtimes-test-depends check-runtimes)
@@ -407,6 +412,14 @@
list(APPEND ${name}_extra_targets "${target_name}:${target_name}-${name}")
endforeach()
+ foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
+ if(NOT "${target_name}:${target_name}-${component}" IN_LIST extra_targets)
+ list(APPEND ${name}_extra_targets
+ "${target_name}:${target_name}-${component}"
+ "${target_name}:${target_name}-install-${component}")
+ endif()
+ endforeach()
+
if(LLVM_INCLUDE_TESTS)
list(APPEND ${name}_test_targets
"runtimes-test-depends:runtimes-test-depends-${name}"
@@ -478,6 +491,12 @@
add_custom_target(runtimes-test-depends)
set(test_targets "")
endif()
+ if(LLVM_RUNTIME_DISTRIBUTION_COMPONENTS)
+ foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
+ add_custom_target(${component})
+ add_custom_target(install-${component})
+ endforeach()
+ endif()
endif()
foreach(name ${LLVM_RUNTIME_TARGETS})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46705.147343.patch
Type: text/x-patch
Size: 2228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180517/263a057e/attachment.bin>
More information about the llvm-commits
mailing list