<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Will do. That comment obviously is out of date as I keep adding files :-).<div class=""><br class=""></div><div class="">This latest one is a special ball of evil clever cmake goop, I can’t wait till bogner spots it :-).<br class=""><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 8, 2016, at 10:38 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com" class="">chisophugis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">-- Sean Silva</div>







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