[cfe-dev] Building Clang on Windows

Zachary Turner via cfe-dev cfe-dev at lists.llvm.org
Sun Oct 7 16:42:03 PDT 2018

On Sun, Oct 7, 2018 at 4:30 PM Fábio Picchi via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> > The problem is that by default VS2017 builds Clang in parallel to how
> many cores you have
> That would explain my problem in building clang then as I have an eight
> core Ryzen 7 1700X with only 8GB of RAM. I will try to build with parallel
> building off...
> But did ninja ignore these build options? Because I was able to build
> clang using it without any problem.
> I will look into it and post some results tomorrow.

Ninja is not MSBuild, it has its own algorithm for scheduling parallel jobs
(you can control this with the -j option, but by default it picks something
sane).  You can see what happens if you pass -j 8.

I still don't see how your situation would result in an out of memory
error.  How much physical memory your system has is totally irrelevant, you
still cannot "run out of memory" from the process's point of view unless
you also run out of disk space for swap, which is extremely unlikely unless
you have configured a very small swap.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181007/a2d6b99c/attachment.html>

More information about the cfe-dev mailing list