<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 7, 2018 at 4:30 PM Fábio Picchi via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000">> 
The problem is that by default VS2017 builds Clang in parallel to how many cores you have <br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000"><br></div></div><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000">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...</div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000">But did ninja ignore these build options? Because I was able to build clang using it without any problem.</div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000">I will look into it and post some results tomorrow.</div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>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. </div></div></div>