diff options
| author | Chris Bieneman <beanz@apple.com> | 2016-02-09 06:01:47 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2016-02-09 06:01:47 +0000 |
| commit | 6ced921f8c8ce9a44bee086a2ac41a9b40cb513d (patch) | |
| tree | b012e63ff0586d93b17f56ac34c3b7f6b28c09de | |
| parent | a0601e76b86102c1630a83d9a7d851fe0bd3824c (diff) | |
| download | bcm5719-llvm-6ced921f8c8ce9a44bee086a2ac41a9b40cb513d.tar.gz bcm5719-llvm-6ced921f8c8ce9a44bee086a2ac41a9b40cb513d.zip | |
[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.
llvm-svn: 260201
| -rw-r--r-- | clang/cmake/caches/3-stage.cmake | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/clang/cmake/caches/3-stage.cmake b/clang/cmake/caches/3-stage.cmake new file mode 100644 index 00000000000..62de9601b6b --- /dev/null +++ b/clang/cmake/caches/3-stage.cmake @@ -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 "") |

