[Lldb-commits] [lldb] r176522 - Add instructions for building LLDB with CMake

Daniel Malea daniel.malea at intel.com
Tue Mar 5 14:38:50 PST 2013

Author: dmalea
Date: Tue Mar  5 16:38:50 2013
New Revision: 176522

URL: http://llvm.org/viewvc/llvm-project?rev=176522&view=rev
Add instructions for building LLDB with CMake
- suported generators: Ninja and Unix Makefiles
- added instructions to run tests when building with autoconf


Modified: lldb/trunk/www/build.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/build.html?rev=176522&r1=176521&r2=176522&view=diff
--- lldb/trunk/www/build.html (original)
+++ lldb/trunk/www/build.html Tue Mar  5 16:38:50 2013
@@ -118,6 +118,31 @@
                   <br>> mkdir build
                   <br>> cd build
+                <h2>To build with CMake</h2>
+                <p>Using CMake is documented on the <a href="http://llvm.org/docs/CMake.html">Building LLVM with CMake</a>
+                   page. Building LLDB is possible using one of the following generators:
+                </p>
+                <ul>
+                  <li> Ninja </li>
+                  <li> Unix Makefiles </li>
+                </ul>
+                <h3>Using CMake + Ninja</h3>
+                <p>Ninja is the fastest way to build LLDB! In order to use ninja, you need to have recent versions of CMake and
+                   ninja on your system. To build using ninja:
+                </p>
+                <code>
+                  <br>> cmake -C .. -G Ninja
+                  <br>> ninja lldb
+                  <br>> ninja check-lldb
+                </code>
+                <h3>Using CMake + Unix Makefiles</h3>
+                <p>If you do not have Ninja, you can still use CMake to generate GNU Makefiles that build LLDB:</p>
+                <code>
+                  <br>> cmake -C ..
+                  <br>> make lldb
+                  <br>> make check-lldb
+                </code>
+                <h2>To build with configure and GNU Make</h2>
                 <p>If you are using clang:</p>
                   <br>> $llvm/configure --enable-cxx11
@@ -132,7 +157,11 @@
                 <p> If you wish to build with libc++ instead of libstdc++ (the default), you should run configure with the
                 <tt>--enable-libcpp</tt> flag.</p>
                 <p> If you wish to build a release version of LLDB, run configure with the <tt>--enable-optimized</tt> flag.</p>
+                <p> To run the LLDB test suite after building with configure and make, run:</p>
+                <code>
+                  <br>> make -C tools/lldb/test
+                </code>
                 <h2>Additional Notes</h2>
                 <p>LLDB has a Python scripting capability and supplies its own Python module named <tt>lldb</tt>.
                 If a script is run inside the command line <tt>lldb</tt> application, the Python module

More information about the lldb-commits mailing list