<div dir="ltr">A quick question while I am adding a tiny section on ccache to the HowToAddABuilder document: Why do you set CCACHE_CPP2 to yes?  From reading the manual, I get the impression that this is much slower than the default and that it should only be used with tricky compilers or when debugging.  Is Clang such a tricky compiler?  If so, I suppose Clang should be fixed, not the ccache configuration.<div>
<br></div><div>-- Mikael</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/14 Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Nov 13, 2013 at 5:28 PM, Mikael Lyngvig <<a href="mailto:mikael@lyngvig.org">mikael@lyngvig.org</a>> wrote:<br>

> Hi Dmitri,<br>
><br>
> I am not using any kind of cache (didn't even know of ccache).  I have now<br>
> installed ccache.  Perhaps ccache should be mentioned in the buildbot<br>
> document so that every buildbot owner knows about it?<br>
<br>
Possibly.<br>
<br>
> It is currently running Arch Linux ARM.  if there are good reasons to switch<br>
> to something else, I'll be happy to do that, although I am generally very<br>
> happy about Arch Linux.<br>
><br>
> What do you want me to build?  LLVM?  Clang?  Both plus test suite?<br>
<br>
Personally, I see more value in building LLVM, Clang, possibly lld,<br>
without test suite.  This is the way that most build bots operate.<br>
Test suite takes a long time to run, and this increases the iteration<br>
time.<br>
<br>
As an example, you could look at the configuration in zorg repository<br>
that corresponds to this buildbot:<br>
<br>
<a href="http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-debian-fast" target="_blank">http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-debian-fast</a><br>
<br>
It uses CMake/ninja, which will give you the best possible iteration time.<br>
<br>
In order to use ccache, you need ensure that these environment<br>
variables are set:<br>
<br>
CC="ccache clang"<br>
CXX="ccache clang++"<br>
CCACHE_CPP2=yes<br>
export CC CXX CCACHE_CPP2<br>
<br>
(Of course, you can use gcc/g++ as compilers.)<br>
<span class="HOEnZb"><font color="#888888"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span></blockquote></div><br></div>