r260201 - [CMake] Providing a CMake cache for 3-stage builds

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 8 22:40:21 PST 2016


Will do. That comment obviously is out of date as I keep adding files :-).

This latest one is a special ball of evil clever cmake goop, I can’t wait till bogner spots it :-).

-Chris

> On Feb 8, 2016, at 10:38 PM, Sean Silva <chisophugis at gmail.com> wrote:
> 
> Neat! Besides the awesomeness of the bootstrap, I didn't know about the -C option! (well, except that you told me about it at the social last week, but this is the first time I saw the actual usage).
> 
> btw, the README.txt in cmake/caches says "The first two cache files in the directory" -- but it's not clear what the "first two" are. Could you update the description there?
> 
> -- Sean Silva
> 
> On Mon, Feb 8, 2016 at 10:01 PM, Chris Bieneman via cfe-commits <cfe-commits at lists.llvm.org <mailto:cfe-commits at lists.llvm.org>> wrote:
> Author: cbieneman
> Date: Tue Feb  9 00:01:47 2016
> New Revision: 260201
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=260201&view=rev <http://llvm.org/viewvc/llvm-project?rev=260201&view=rev>
> Log:
> [CMake] Providing a CMake cache for 3-stage builds
> 
> This cache file can be used to generate a 3-stage clang build. You can configure using the following CMake command:
> 
> cmake -C <path to clang>/cmake/caches/3-stage.cmake -G Ninja <path to llvm>
> 
> You can then run "ninja stage3-clang" to build stage1, stage2 and stage3 clangs.
> 
> This is useful for finding non-determinism the compiler by verifying that stage2 and stage3 are identical.
> 
> Added:
>     cfe/trunk/cmake/caches/3-stage.cmake
> 
> Added: cfe/trunk/cmake/caches/3-stage.cmake
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/3-stage.cmake?rev=260201&view=auto <http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/3-stage.cmake?rev=260201&view=auto>
> ==============================================================================
> --- cfe/trunk/cmake/caches/3-stage.cmake (added)
> +++ cfe/trunk/cmake/caches/3-stage.cmake Tue Feb  9 00:01:47 2016
> @@ -0,0 +1,34 @@
> +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(CLANG_BOOTSTRAP_PASSTHROUGH
> +  CLANG_ENABLE_BOOTSTRAP
> +  LLVM_BUILD_EXTERNAL_COMPILER_RT
> +  LLVM_TARGETS_TO_BUILD
> +  CLANG_BOOTSTRAP_PASSTHROUGH
> +  BOOTSTRAP_LLVM_ENABLE_LTO
> +  CMAKE_BUILD_TYPE
> +  CACHE STRING "")
> +
> +set(CLANG_BOOTSTRAP_TARGETS
> +  clang
> +  check-all
> +  check-llvm
> +  check-clang
> +  test-suite
> +  stage3
> +  stage3-clang
> +  stage3-check-all
> +  stage3-check-llvm
> +  stage3-check-clang
> +  stage3-test-suite CACHE STRING "")
> +
> +set(BOOTSTRAP_CLANG_BOOTSTRAP_TARGETS
> +  clang
> +  check-all
> +  check-llvm
> +  check-clang
> +  test-suite CACHE STRING "")
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org <mailto:cfe-commits at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160208/eb647ff7/attachment.html>


More information about the cfe-commits mailing list