[PATCH] D138966: [runtimes] Support sub-components in LLVM_RUNTIME_DISTRIBUTION_COMPONENTS
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 17:47:51 PST 2022
smeenai created this revision.
smeenai added a reviewer: phosek.
Herald added a project: All.
smeenai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Right now, sub-components are only accounted for when the runtime has
been configured and the main LLVM configure is rerun after that. We can
make use of LLVM_RUNTIME_DISTRIBUTION_COMPONENTS to make sub-component
targets available from the start, but that currently clashes with the
sub-component target generation once they are picked up. Make sure we
don't create duplicate targets; an analogous check already exists in
runtime_default_target.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138966
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -287,10 +287,12 @@
endforeach()
foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
- set(${component}-${name} ${component})
- set(install-${component}-${name} install-${component})
- set(install-${component}-${name}-stripped install-${component}-stripped)
- list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name} install-${component}-${name}-stripped)
+ if(NOT component IN_LIST SUB_COMPONENTS)
+ set(${component}-${name} ${component})
+ set(install-${component}-${name} install-${component})
+ set(install-${component}-${name}-stripped install-${component}-stripped)
+ list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name} install-${component}-${name}-stripped)
+ endif()
endforeach()
if(LLVM_INCLUDE_TESTS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138966.478768.patch
Type: text/x-patch
Size: 1003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221130/3143183a/attachment.bin>
More information about the llvm-commits
mailing list