From f9f7dec07acc84de46a358d270c609679f9e24b5 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Thu, 29 Sep 2016 21:47:15 +0000 Subject: [PATCH] Add a quick note about how to build lldb with debug info using cmake/ninja on linux/bsd systems. llvm-svn: 282790 --- lldb/www/build.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lldb/www/build.html b/lldb/www/build.html index ea83abf3dc0c..123badf40acc 100755 --- a/lldb/www/build.html +++ b/lldb/www/build.html @@ -287,10 +287,17 @@ ninja on your system. To build using ninja:

- > cmake .. -G Ninja + > cmake ../llvm -G Ninja
> ninja lldb
> ninja check-lldb
+

+ 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: +

+ + > cmake ../llvm -G Ninja -DLLDB_EXPORT_ALL_SYMBOLS=1 -DCMAKE_BUILD_TYPE=Debug +

Using CMake + Unix Makefiles

If you do not have Ninja, you can still use CMake to generate Unix Makefiles that build LLDB: