<div class="gmail_quote">On Wed, Jun 13, 2012 at 5:40 PM, Mikael Lyngvig <span dir="ltr"><<a href="mailto:mikael@lyngvig.org" target="_blank">mikael@lyngvig.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A tiny question (I hardly know what Ninja is, but am looking forward to trying it out): Does the changes also work with MinGW builds? I've got a Windows buildbot slave that does nothing but building LLVM+Clang using MinGW64 all day, every day. Or, is it only for Visual Studio?</blockquote>
<div><br></div><div>I just tried a mingw64 build, and all was fine!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><br>
<br><div class="gmail_quote">2012/6/13 Justin Holewinski <span dir="ltr"><<a href="mailto:justin.holewinski@gmail.com" target="_blank">justin.holewinski@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wow, this is seriously fast on Windows! I've been using Ninja on Linux/Mac for awhile now, I'm glad to see it working on Windows now.<div><div><br><br><div class="gmail_quote">On Wed, Jun 13, 2012 at 5:09 PM, =?utf-8?Q?=C3=93scar_Fuentes?= <span dir="ltr"><<a href="mailto:ofv@wanadoo.es" target="_blank">ofv@wanadoo.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Nikola Smiljanic <<a href="mailto:popizdeh@gmail.com" target="_blank">popizdeh@gmail.com</a>> writes:<br>
<br>
> Could somebody please provide more info. What exactly is ninja (I'm<br>
> guessing it's a build system) and how to set it up in combination with<br>
> Visual Studio?<br>
<br>
</div></div>This is the message I posted on the LLVM mailing list. Here it goes<br>
again for the benefit of CLang'ers:<br>
<div><div><br>
Building LLVM with Visual Studio is a bit of a pain because the<br>
available methods are slow and doesn't make good use of multiprocessor<br>
systems.<br>
<br>
>From now on it is possible to build LLVM+Clang with the usual cmake<br>
method but using Ninja, an ultra-fast tool that knows how to take<br>
advantage of the availabe execution threads. Ultra-fast is no<br>
exageration: with a warm cache, a no-op build of LLVM is done in less<br>
than half a second.<br>
<br>
Rigth now Ninja/VS support is activated on a cmake experimental build,<br>
with strong possibilities of making its way into the next official<br>
release. For now, you need to build the patched cmake+ninja yourselves<br>
or download the executables from<br>
<br>
<a href="http://sourceforge.net/projects/cmakescript/files/" target="_blank">http://sourceforge.net/projects/cmakescript/files/</a><br>
<br>
Download and install cmake-Ninja-2.8.8.*-win32-x86.exe, then download<br>
ninja.exe to the `bin' subdirectory of the place where you installed<br>
cmake. Then proceed to build LLVM:<br>
<br>
mkdir myLLVMbuildWithNinja<br>
cd myLLVMbuildWithNinja<br>
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release path/to/llvm/source/root<br>
ninja<br>
<br>
(be sure to use the cmake you just installed, not the one you already<br>
had on the system)<br>
<br>
If you prefer to build cmake+ninja yourselves, read the thread<br>
<br>
<a href="http://news.gmane.org/find-root.php?group=gmane.comp.programming.tools.cmake.devel&article=3903" target="_blank">http://news.gmane.org/find-root.php?group=gmane.comp.programming.tools.cmake.devel&article=3903</a><br>
<br>
(long, sorry) or ask on the cmake developer's mailing list for pointers,<br>
as right now the exact sources are a bit of a moving target. If you find<br>
bugs building LLVM or any other cmake-based project with ninja, please<br>
report them on cmake's developers mailing list, available through gmane:<br>
<br>
<a href="http://dir.gmane.org/gmane.comp.programming.tools.cmake.devel" target="_blank">http://dir.gmane.org/gmane.comp.programming.tools.cmake.devel</a><br>
<br>
or via e-mail:<br>
<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake-developers" target="_blank">http://www.cmake.org/mailman/listinfo/cmake-developers</a><br>
<br>
About ninja:<br>
<br>
<a href="http://martine.github.com/ninja/" target="_blank">http://martine.github.com/ninja/</a><br>
_______________________________________________<br>
</div></div>cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>
</font></span><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div>-- Love Thy Frog!<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>