<br>> mkdir build\r
<br>> cd build\r
</code>\r
+ <h2>To build with CMake</h2>\r
+ <p>Using CMake is documented on the <a href="http://llvm.org/docs/CMake.html">Building LLVM with CMake</a>\r
+ page. Building LLDB is possible using one of the following generators:\r
+ </p>\r
+ <ul>\r
+ <li> Ninja </li>\r
+ <li> Unix Makefiles </li>\r
+ </ul>\r
+ <h3>Using CMake + Ninja</h3>\r
+ <p>Ninja is the fastest way to build LLDB! In order to use ninja, you need to have recent versions of CMake and\r
+ ninja on your system. To build using ninja:\r
+ </p>\r
+ <code>\r
+ <br>> cmake -C .. -G Ninja\r
+ <br>> ninja lldb\r
+ <br>> ninja check-lldb\r
+ </code>\r
+ <h3>Using CMake + Unix Makefiles</h3>\r
+ <p>If you do not have Ninja, you can still use CMake to generate GNU Makefiles that build LLDB:</p>\r
+ <code>\r
+ <br>> cmake -C ..\r
+ <br>> make lldb\r
+ <br>> make check-lldb\r
+ </code>\r
+ <h2>To build with configure and GNU Make</h2>\r
<p>If you are using clang:</p>\r
<code>\r
<br>> $llvm/configure --enable-cxx11\r
<p> If you wish to build with libc++ instead of libstdc++ (the default), you should run configure with the\r
<tt>--enable-libcpp</tt> flag.</p>\r
<p> If you wish to build a release version of LLDB, run configure with the <tt>--enable-optimized</tt> flag.</p>\r
- \r
+ <p> To run the LLDB test suite after building with configure and make, run:</p>\r
+ <code>\r
+ <br>> make -C tools/lldb/test\r
+ </code>\r
+\r
<h2>Additional Notes</h2>\r
<p>LLDB has a Python scripting capability and supplies its own Python module named <tt>lldb</tt>.\r
If a script is run inside the command line <tt>lldb</tt> application, the Python module\r