[Lldb-commits] [lldb] r282790 - Add a quick note about how to build lldb with debug info using

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 29 14:47:16 PDT 2016


Author: jmolenda
Date: Thu Sep 29 16:47:15 2016
New Revision: 282790

URL: http://llvm.org/viewvc/llvm-project?rev=282790&view=rev
Log:
Add a quick note about how to build lldb with debug info using
cmake/ninja on linux/bsd systems.

Modified:
    lldb/trunk/www/build.html

Modified: lldb/trunk/www/build.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/build.html?rev=282790&r1=282789&r2=282790&view=diff
==============================================================================
--- lldb/trunk/www/build.html (original)
+++ lldb/trunk/www/build.html Thu Sep 29 16:47:15 2016
@@ -287,10 +287,17 @@
               ninja on your system. To build using ninja:
             </p>
             <code>
-              > cmake .. -G Ninja
+              > cmake ../llvm -G Ninja
               <br />> ninja lldb
               <br />> ninja check-lldb
             </code>
+            <p>
+              If you want to debug the lldb that you're building -- that is, build it with debug info enabled -- pass
+              two additional arguments to cmake before running ninja:
+            </p>
+            <code>
+              > cmake ../llvm -G Ninja -DLLDB_EXPORT_ALL_SYMBOLS=1 -DCMAKE_BUILD_TYPE=Debug
+            </code>
             <h3>Using CMake + Unix Makefiles</h3>
             <p>If you do not have Ninja, you can still use CMake to generate Unix Makefiles that build LLDB:</p>
             <code>




More information about the lldb-commits mailing list