OSDN Git Service

[CMake] Support multi-target runtimes build
authorPetr Hosek <phosek@chromium.org>
Tue, 11 Jul 2017 23:41:15 +0000 (23:41 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 11 Jul 2017 23:41:15 +0000 (23:41 +0000)
commit39247cb1d13d71f7ab38d07b51b6784e97daf268
treed1abb9bad9ff7997cbf8559364b0df6d4bf76451
parent4aebf83110897f95aebb6945c7c7e7489c0779a8
[CMake] Support multi-target runtimes build

This changes adds support for building runtimes for multiple
different targets using LLVM runtimes directory.

The implementation follow the model used already by the builtins
build which already supports this option. To specify the runtimes
targets to be built, use the LLVM_RUNTIME_TARGETS variable, where
the valuae is the list of targets to build runtimes for. To pass
a per target variable to the runtimes build, you can set
RUNTIMES_<target>_<variable> where <variable> will be passed to the
runtimes build for <target>.

Each runtime target (except for the default one) will be installed
into lib/<target> subdirectory. Build targets will be suffixed with
the target name.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307731 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/LLVMExternalProjectUtils.cmake
runtimes/CMakeLists.txt
runtimes/Components.cmake.in