summaryrefslogtreecommitdiffstats
path: root/clang/cmake/caches
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-02-26 21:23:59 +0000
committerChris Bieneman <beanz@apple.com>2016-02-26 21:23:59 +0000
commit33b41961c3c0587b85ce3f5c0ada8b330b79550e (patch)
treeaf166eee2f25c180d0610e2bbdbd56d8ee49f32c /clang/cmake/caches
parentbe22727598b68f101851bcba13d5433dcca0b7c0 (diff)
downloadbcm5719-llvm-33b41961c3c0587b85ce3f5c0ada8b330b79550e.tar.gz
bcm5719-llvm-33b41961c3c0587b85ce3f5c0ada8b330b79550e.zip
[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. llvm-svn: 262071
Diffstat (limited to 'clang/cmake/caches')
-rw-r--r--clang/cmake/caches/3-stage-base.cmake1
-rw-r--r--clang/cmake/caches/3-stage.cmake2
2 files changed, 2 insertions, 1 deletions
diff --git a/clang/cmake/caches/3-stage-base.cmake b/clang/cmake/caches/3-stage-base.cmake
index 90d40f7d95f..417d2b7b238 100644
--- a/clang/cmake/caches/3-stage-base.cmake
+++ b/clang/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/clang/cmake/caches/3-stage.cmake b/clang/cmake/caches/3-stage.cmake
index d91d339b5ea..49bce39dfc9 100644
--- a/clang/cmake/caches/3-stage.cmake
+++ b/clang/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)
OpenPOWER on IntegriCloud