diff options
author | Chris Bieneman <beanz@apple.com> | 2016-02-26 21:23:59 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-02-26 21:23:59 +0000 |
commit | e177b4a63ca92c5fec010986944530688e104074 (patch) | |
tree | d226f3c3b921b79840cd72a1a0558d8ba2404ef0 /cmake | |
parent | 3b0e0ced1307a8e48faf74aa67c921c942a377e3 (diff) |
[CMake] Only configure Native target in stage 1, configure all in other stages
This patch causes the 3-stage build pipeline to only build a host compiler in the first stage, and to build all targets for subsequent stages. The host target is determined via the Native target specifier added in r262070.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/caches/3-stage-base.cmake | 1 | ||||
-rw-r--r-- | cmake/caches/3-stage.cmake | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmake/caches/3-stage-base.cmake b/cmake/caches/3-stage-base.cmake index 90d40f7d95..417d2b7b23 100644 --- a/cmake/caches/3-stage-base.cmake +++ b/cmake/caches/3-stage-base.cmake @@ -1,7 +1,6 @@ set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "") set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "") set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "") -set(LLVM_TARGETS_TO_BUILD X86 CACHE STRING "") set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "") set(LLVM_ENABLE_TIMESTAMPS OFF CACHE BOOL "") diff --git a/cmake/caches/3-stage.cmake b/cmake/caches/3-stage.cmake index d91d339b5e..49bce39dfc 100644 --- a/cmake/caches/3-stage.cmake +++ b/cmake/caches/3-stage.cmake @@ -11,4 +11,6 @@ set(CLANG_BOOTSTRAP_TARGETS stage3-check-clang stage3-test-suite CACHE STRING "") +set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "") + include(${CMAKE_CURRENT_LIST_DIR}/3-stage-base.cmake) |