r262071 - [CMake] Only configure Native target in stage 1, configure all in other stages

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 26 13:23:59 PST 2016


Author: cbieneman
Date: Fri Feb 26 15:23:59 2016
New Revision: 262071

URL: http://llvm.org/viewvc/llvm-project?rev=262071&view=rev
Log:
[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.

Modified:
    cfe/trunk/cmake/caches/3-stage-base.cmake
    cfe/trunk/cmake/caches/3-stage.cmake

Modified: cfe/trunk/cmake/caches/3-stage-base.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/3-stage-base.cmake?rev=262071&r1=262070&r2=262071&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/3-stage-base.cmake (original)
+++ cfe/trunk/cmake/caches/3-stage-base.cmake Fri Feb 26 15:23:59 2016
@@ -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 "")
 

Modified: cfe/trunk/cmake/caches/3-stage.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/3-stage.cmake?rev=262071&r1=262070&r2=262071&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/3-stage.cmake (original)
+++ cfe/trunk/cmake/caches/3-stage.cmake Fri Feb 26 15:23:59 2016
@@ -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)




More information about the cfe-commits mailing list