OSDN Git Service

[CMake] Support runtimes in distributions
authorChris Bieneman <chris.bieneman@me.com>
Thu, 17 May 2018 16:58:44 +0000 (16:58 +0000)
committerChris Bieneman <chris.bieneman@me.com>
Thu, 17 May 2018 16:58:44 +0000 (16:58 +0000)
commite605bbd4c503590091fdcfd52cdb97385d02b36c
treef41fda89928498344f92d7b4e08f6fc7652cf3db
parent49f3003c7f84443d3d3632f6ba24bdfd03414ef3
[CMake] Support runtimes in distributions

Summary:
This patch adds a new internal variable
LLVM_RUNTIME_DISTRIBUTION_COMPONENTS which specifies distribution
components that are part of runtime projects, and thus should be exposed
from runtime configuraitons up into the top-level CMake configurations.

This is required for allowing runtime components to be included in
LLVM_DISTRIBUTION_COMPONENTS because we verify that the build and
install targets exist for every component specified for the
distribution.

Without this patch runtimes and builtins can only be included in
distributions in whole, not by component.

Reviewers: phosek

Reviewed By: phosek

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D46705

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332631 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
runtimes/CMakeLists.txt