Skip to content

Commit 4396c87

Browse files
[lldb][docs] Update instructions to build standalone (#137383)
The instructions to build LLDB standalone contain a CMake configure step to build LLVM standalone. This configure step needs to also have the CMake build type in order to work.
1 parent ecd793c commit 4396c87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/docs/resources/build.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,13 @@ checked out above, but now we will have multiple build-trees:
204204

205205
Run CMake with ``-B`` pointing to a new directory for the provided
206206
build-tree\ :sup:`1` and the positional argument pointing to the ``llvm``
207-
directory in the source-tree. Note that we leave out LLDB here and only include
207+
directory in the source-tree.\ :sup:`2` Note that we leave out LLDB here and only include
208208
Clang. Then we build the ``ALL`` target with ninja:
209209

210210
::
211211

212212
$ cmake -B /path/to/llvm-build -G Ninja \
213+
-DCMAKE_BUILD_TYPE=[<build type>] \
213214
-DLLVM_ENABLE_PROJECTS=clang \
214215
-DCMAKE_BUILD_TYPE=Release \
215216
[<more cmake options>] /path/to/llvm-project/llvm
@@ -238,6 +239,8 @@ remove it from the Ninja command.
238239
#. The ``-B`` argument was undocumented for a while and is only officially
239240
supported since `CMake version 3.14
240241
<https://cmake.org/cmake/help/v3.14/release/3.14.html#command-line>`_
242+
#. If you want to have a standalone LLDB build with tests enabled, you also
243+
need to pass in ``-DLLVM_ENABLE_RUNTIME='libcxx;libcxxabi;libunwind'`` to your CMake invocation when configuring your LLVM standalone build.
241244

242245
.. _CommonCMakeOptions:
243246

0 commit comments

Comments
 (0)