From: Chris Bieneman Date: Mon, 20 May 2019 18:10:20 +0000 (+0000) Subject: [CMake] Update DistributionExample for mono repo X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55cefac1485939476277af2a6da30d2e462dc13e;p=clang [CMake] Update DistributionExample for mono repo This just updates the DistributionExamples from my 2016 Dev Meeting talk to work more seamlessly with the monorepo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361184 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/caches/DistributionExample-stage2.cmake b/cmake/caches/DistributionExample-stage2.cmake index 305139cdc4..f4d5d92d1d 100644 --- a/cmake/caches/DistributionExample-stage2.cmake +++ b/cmake/caches/DistributionExample-stage2.cmake @@ -1,6 +1,9 @@ # This file sets up a CMakeCache for the second stage of a simple distribution # bootstrap build. +set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra;lld" CACHE STRING "") +set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx" CACHE STRING "") + set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "") set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "") diff --git a/cmake/caches/DistributionExample.cmake b/cmake/caches/DistributionExample.cmake index 551f4ee07e..35493edd17 100644 --- a/cmake/caches/DistributionExample.cmake +++ b/cmake/caches/DistributionExample.cmake @@ -1,5 +1,9 @@ # This file sets up a CMakeCache for a simple distribution bootstrap build. +#Enable LLVM projects and runtimes +set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra;lld" CACHE STRING "") +set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx" CACHE STRING "") + # Only build the native target in stage1 since it is a throwaway build. set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")