[runtimes] Support sub-components in LLVM_RUNTIME_DISTRIBUTION_COMPONENTS
authorShoaib Meenai <smeenai@fb.com>
Wed, 30 Nov 2022 01:38:12 +0000 (17:38 -0800)
committerShoaib Meenai <smeenai@fb.com>
Wed, 30 Nov 2022 19:14:37 +0000 (11:14 -0800)
commita323e515eee85121c6b85f08eef5acc427d22f83
tree209a19b43ecddcfac76f0ac1e640cc8faa415cea
parent6de939dbe7519f21ba774199e91f7fba9fd55cef
[runtimes] Support sub-components in LLVM_RUNTIME_DISTRIBUTION_COMPONENTS

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.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D138966
llvm/runtimes/CMakeLists.txt