diff options
author | Chris Bieneman <chris.bieneman@me.com> | 2019-05-20 18:10:20 +0000 |
---|---|---|
committer | Chris Bieneman <chris.bieneman@me.com> | 2019-05-20 18:10:20 +0000 |
commit | c1ad143f95da3b18d1ec2eea50d418cbbfab1a2b (patch) | |
tree | d939eb3710d28420ff29b3b1fcb546797d569ce9 /clang/cmake | |
parent | 380eaa0cfabe0b316fd69adef10eeca2c31ed2e4 (diff) | |
download | bcm5719-llvm-c1ad143f95da3b18d1ec2eea50d418cbbfab1a2b.tar.gz bcm5719-llvm-c1ad143f95da3b18d1ec2eea50d418cbbfab1a2b.zip |
[CMake] Update DistributionExample for mono repo
This just updates the DistributionExamples from my 2016 Dev Meeting talk to work more seamlessly with the monorepo.
llvm-svn: 361184
Diffstat (limited to 'clang/cmake')
-rw-r--r-- | clang/cmake/caches/DistributionExample-stage2.cmake | 3 | ||||
-rw-r--r-- | clang/cmake/caches/DistributionExample.cmake | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/clang/cmake/caches/DistributionExample-stage2.cmake b/clang/cmake/caches/DistributionExample-stage2.cmake index 305139cdc4a..f4d5d92d1d1 100644 --- a/clang/cmake/caches/DistributionExample-stage2.cmake +++ b/clang/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/clang/cmake/caches/DistributionExample.cmake b/clang/cmake/caches/DistributionExample.cmake index 551f4ee07ea..35493edd17f 100644 --- a/clang/cmake/caches/DistributionExample.cmake +++ b/clang/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 "") |