[LLVMdev] Ninja (make replacement)

Mikael Lyngvig mikael at lyngvig.org
Tue Jun 19 06:15:46 PDT 2012


I think there is a problem in Make as well.  No matter what library or when
during the build, I never see it go above 50 percent CPU load even if I
specify -j4 on a quad-core system.  With Ninja, on the other hand, the load
consistently stays at 100 percent.

Check out this ancient article:
http://dannythorpe.com/2008/03/06/parallel-make-in-win32/ .  And the magic,
setting SHELL to cmd.exe, does not seem to work for me.

2012/6/19 Sean Hunt <scshunt at csclub.uwaterloo.ca>

> On Sun, Jun 17, 2012 at 7:30 PM, Mikael Lyngvig <mikael at lyngvig.org>
> wrote:
> > Hi Christoph,
> >
> > 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.
> >
> > 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.
>
> See http://llvm.org/bugs/show_bug.cgi?id=13147
>
> Sean
>



-- 
-- Disclaimer: I am *not* arrogant in real life, so if you perceive me as
being arrogant, you are to blame ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120619/5068f067/attachment.html>


More information about the llvm-dev mailing list