[CMake][runtimes] Support monorepo layout with runtimes build
authorPetr Hosek <phosek@chromium.org>
Mon, 27 Nov 2017 22:31:11 +0000 (22:31 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 27 Nov 2017 22:31:11 +0000 (22:31 +0000)
commita08d65ded2237fb69d769410e7a4086b00307a5a
treec2e6ff4fa5a93d1849133de0d4e803e8f4ae93d6
parentea44ee202f6a73bfd832d89bd882b34cda9ca65e
[CMake][runtimes] Support monorepo layout with runtimes build

We introduce a new variable LLVM_ENABLE_RUNTIMES which works
similarly to LLVM_ENABLE_PROJECTS and allows specifying runtimes
that will be enabled in the runtimes build.

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

llvm-svn: 319107
llvm/runtimes/CMakeLists.txt