Add instructions for building LLDB with CMake
authorDaniel Malea <daniel.malea@intel.com>
Tue, 5 Mar 2013 22:38:50 +0000 (22:38 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Tue, 5 Mar 2013 22:38:50 +0000 (22:38 +0000)
- suported generators: Ninja and Unix Makefiles
- added instructions to run tests when building with autoconf

llvm-svn: 176522

lldb/www/build.html

index c74dff9..c57dda5 100755 (executable)
                   <br>&gt; mkdir build\r
                   <br>&gt; 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>&gt; cmake -C .. -G Ninja\r
+                  <br>&gt; ninja lldb\r
+                  <br>&gt; 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>&gt; cmake -C ..\r
+                  <br>&gt; make lldb\r
+                  <br>&gt; 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>&gt; $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>&gt; 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