<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 22 November 2013 20:52, Mikael Lyngvig <span dir="ltr"><<a href="mailto:mikael@lyngvig.org" target="_blank">mikael@lyngvig.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>1. I'm not sure I need the swap file at all after I switched to using Gold.  I guess I should try it out before I submit the document to be committed.  The swap file will only be used if needed, so it shouldn't slow down the build unless it is really needed.  How do you use Gold in the proper way?  LD=ld.gold cmake ...?</div>
</div></blockquote><div><br></div><div>On Debian, when you install binutils-gold, the system already updates the alternatives to use that by default, so you don't need to do anything. I don't know Arch well enough to know how it will behave. My Arch system seems to have gold already, and ld is a hardlink (or a copy) to ld.bfd. In this case, using the autoconf/cmake alternatives for selecting the toolchain is recommended, or a symlink. (in this case it's ok because gold IS a linker, while ccache is NOT gcc).</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>2. I must admit that I am blissfully unaware of CMake supporting CCache?  What do I need to to use CCache the proper way? :-)  Is it only a matter of using: CC="ccache gcc" CXX="ccache g++" cmake ...?  Besides, I believe the given configuration uses Autoconf and not CMake.  It might be better to use CMake, though.<br>
</div></div></blockquote><div><br></div><div>Yes, it should be just a matter of setting the appropriate toolchain selection on autoconf/cmake. CC and CXX should just work.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>3. I am aware that there's already a document on how to set up a buildbot slave, but I am aiming for a single one-shot document that describes all steps in a single document.  I'll put in a link and consider if the existing document needs updates (which I don't think).  My plan is actually to make all in all three of these walk-through documents: Arch Linux, Debian, and Windows.  After that, I feel people should have sufficient info to set up a buildbot slave without further instructions.<br>
</div></div></blockquote><div></div></div><br></div><div class="gmail_extra">What we normally do in LLVM docs is to never duplicate anything. So, if there is a doc on buildslaves, you add a small paragraph saying to look at the other document, and come back when you finished. It's better in the long run than having to update lots of documents (in your case, three at least) later when things change. ;)</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div></div>