<div dir="ltr"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 16, 2018 at 11:42 PM, Kim Gräsman via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span class="gmail-"><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Wed, Oct 17, 2018, 03:56 Fábio Picchi via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:"courier new",monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:"courier new",monospace;font-size:small;color:rgb(0,0,0)">What if cmake generated by default a solution that builds using only a single thread? This way people would not complain when trying to use this workflow and mantainers / more experienced users would change this setting when they find it appropriate.</div></div></blockquote></div><div dir="auto"><br></div></span><div dir="auto">MSVC has two knobs for parallel compilation: the compiler switch /MP which can be set per project or per source file, and "Number of parallel builds" which is a user setting and can't be overridden for individual solutions/projects. </div><div dir="auto"><br></div><div dir="auto">So I suppose the cmake system could generate projects without /MP, but the other setting is out of its control. </div><div dir="auto"><br></div><div dir="auto">And I'm not sure it makes a good default to cripple the buildsystem like this. For every user it helps, it will kill the experience for somebody else. </div></div></blockquote><div><br></div><div>Exactly.</div><div><br></div><div>I tried it on the dev machine I use.</div><div><br></div><div><div>brucehoult@gamma05:~/riscv/riscv-llvm/_build$ time cmake --build . -- -j1</div><div>[2672/2672] Creating library symlink lib/libbenchmark_main.so.0 lib/libbenchmark_main.so<br></div><div><br></div><div>real<span style="white-space:pre">    </span>136m51.168s</div><div>user<span style="white-space:pre">       </span>125m28.820s</div><div>sys<span style="white-space:pre">        </span>10m30.132s</div></div><div><br></div><div>The normal time for a clean build on this machine is 8.5 minutes. Even on my little i7 NUC it's only about 30 minutes. Who would want to wait over two hours?</div><div><br></div></div></div></div></div>