Skip to content

Commit

Permalink
[CMake] Update DistributionExample for mono repo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
llvm-beanz committed May 20, 2019
1 parent 8244457 commit 55cefac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/caches/DistributionExample-stage2.cmake
Original file line number Diff line number Diff line change
@@ -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 "")
Expand Down
4 changes: 4 additions & 0 deletions cmake/caches/DistributionExample.cmake
Original file line number Diff line number Diff line change
@@ -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 "")

Expand Down

0 comments on commit 55cefac

Please sign in to comment.