<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="-1"><a class="moz-txt-link-freetext" href="https://ninja-build.org/manual.html">https://ninja-build.org/manual.html</a></font></p>
<blockquote>
<p><font size="-1"><code class="literal">ninja -h</code> prints
help output. Many of Ninja’s flags intentionally
match those of Make; e.g <code class="literal">ninja -C build
-j 20</code> changes into the
<code class="literal">build</code> directory and runs 20 build
commands in parallel.</font></p>
</blockquote>
<p><font size="-1">Neil Nelson<br>
</font></p>
<div class="moz-cite-prefix"><font size="-1">On 8/8/20 3:41 PM,
David Blaikie via llvm-dev wrote:</font><br>
</div>
<blockquote type="cite"
cite="mid:CAENS6EufcC9FqBfWkd2xYYgHSqyW894=zsFtJ8qwqkmOuk4ZHA@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">On Sat, Aug 8, 2020 at 2:22 PM Dmitry Mikushin via llvm-dev
<a class="moz-txt-link-rfc2396E" href="mailto:llvm-dev@lists.llvm.org"><llvm-dev@lists.llvm.org></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Ninja is really good, indeed. The only problem I've seen is that LLVM linking step (made massively parallel by Ninja) renders the 8GB RAM system unresponsive due to excessive swapping.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
FWIW, there is a way to limit the number of parallel link jobs in
particular (so compile jobs can still have more parallelism). I don't
recall exactly what it is - I guess some CMake variable.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">You can reconfigure CMake to use Ninja in an existing build folder, but it will not use the binaries previously built with another tool. Moreover, generated files may clash in an incompatible way, so it's rather better to cleanup the old build.
Kind regards,
- Dmitry.
сб, 8 авг. 2020 г. в 23:12, Paul C. Anagnostopoulos via llvm-dev <a class="moz-txt-link-rfc2396E" href="mailto:llvm-dev@lists.llvm.org"><llvm-dev@lists.llvm.org></a>:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
I built my first submission with Visual Studio, but everything I read and watch suggests Ninja, about which I know nothing. Is it okay if I rerun CMake with -G "Ninja" in the same build directory, then just run ninja?
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</body>
</html>