<div dir="ltr">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).<div><br></div><div>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?</div><div><br></div><div>-- Sean Silva</div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 10:01 PM, Chris Bieneman via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: cbieneman<br>
Date: Tue Feb  9 00:01:47 2016<br>
New Revision: 260201<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=260201&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=260201&view=rev</a><br>
Log:<br>
[CMake] Providing a CMake cache for 3-stage builds<br>
<br>
This cache file can be used to generate a 3-stage clang build. You can configure using the following CMake command:<br>
<br>
cmake -C <path to clang>/cmake/caches/3-stage.cmake -G Ninja <path to llvm><br>
<br>
You can then run "ninja stage3-clang" to build stage1, stage2 and stage3 clangs.<br>
<br>
This is useful for finding non-determinism the compiler by verifying that stage2 and stage3 are identical.<br>
<br>
Added:<br>
    cfe/trunk/cmake/caches/3-stage.cmake<br>
<br>
Added: cfe/trunk/cmake/caches/3-stage.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/3-stage.cmake?rev=260201&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/3-stage.cmake?rev=260201&view=auto</a><br>
==============================================================================<br>
--- cfe/trunk/cmake/caches/3-stage.cmake (added)<br>
+++ cfe/trunk/cmake/caches/3-stage.cmake Tue Feb  9 00:01:47 2016<br>
@@ -0,0 +1,34 @@<br>
+set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "")<br>
+set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")<br>
+set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "")<br>
+set(LLVM_TARGETS_TO_BUILD X86 CACHE STRING "")<br>
+set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")<br>
+<br>
+set(CLANG_BOOTSTRAP_PASSTHROUGH<br>
+  CLANG_ENABLE_BOOTSTRAP<br>
+  LLVM_BUILD_EXTERNAL_COMPILER_RT<br>
+  LLVM_TARGETS_TO_BUILD<br>
+  CLANG_BOOTSTRAP_PASSTHROUGH<br>
+  BOOTSTRAP_LLVM_ENABLE_LTO<br>
+  CMAKE_BUILD_TYPE<br>
+  CACHE STRING "")<br>
+<br>
+set(CLANG_BOOTSTRAP_TARGETS<br>
+  clang<br>
+  check-all<br>
+  check-llvm<br>
+  check-clang<br>
+  test-suite<br>
+  stage3<br>
+  stage3-clang<br>
+  stage3-check-all<br>
+  stage3-check-llvm<br>
+  stage3-check-clang<br>
+  stage3-test-suite CACHE STRING "")<br>
+<br>
+set(BOOTSTRAP_CLANG_BOOTSTRAP_TARGETS<br>
+  clang<br>
+  check-all<br>
+  check-llvm<br>
+  check-clang<br>
+  test-suite CACHE STRING "")<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>