<div>Hi Christoph,</div><div><br></div>It is a good question even though it is obvious :-)  No, for the last few days, I have not been able to build Clang with make -j2 or -j4 - the build always fails on a ranlib operation.  <div>
<br></div><div>Also, on Windows, GNU Make seems to be somewhat broken with respect to parallel builds: It doesn't change a thing whether you specify -j2 or -j4 on a quad-core machine (with hyper-threading disabled in BIOS): The load never passes 50 percent.  I have searched the net and found various magic recipes for how to fix the problem, but none of them worked.  </div>
<div><br></div><div>Perhaps somebody with a make-friendly platform (Linux, Solaris, etc.) will post their numbers with "make -j6" versus "ninja" (Ninja defaults to six threads).</div><div><br></div><div>
All I can say is that for Windows users, Ninja is the best news in years.  And I have seen Mac owners report a speed-up of 2.5 times.  So I don't think it is only on Windows it is a win-win situation.</div><div><br></div>
<div>Supposedly, Ninja is built for speed.  I am myself VERY surprised that there were so large gains to be had just from switching out your make tool with ninja.  And by the way, you invoke ninja just like make: "ninja", "ninja check", "ninja install", and so on.</div>
<div><br></div><div><br></div><div>Best regards,</div><div>Mikael</div><div><br></div><div><br><div class="gmail_quote">2012/6/18 Christoph Erhardt <span dir="ltr"><<a href="mailto:christoph@sicherha.de" target="_blank">christoph@sicherha.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mikael,<br>
<div class="im"><br>
> My Clang build used to take 59:29 minutes using MinGW Makefiles.  With<br>
> Ninja, it takes 18:43 minutes!  That's a speed up of factor three.<br>
</div>sorry for asking the obvious question: Are you comparing against a<br>
parallel "make -j<n>"? :-)<br>
<br>
Best regards,<br>
Christoph<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>