Skip to content

Commit 7c1700b

Browse files
chelcassanovaJDevlieghere
authored andcommitted
[lldb][docs] Update instructions to build standalone (llvm#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. (cherry picked from commit 4396c87)
1 parent 8e90fed commit 7c1700b

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
[<more cmake options>] /path/to/llvm-project/llvm
215216
$ ninja
@@ -236,6 +237,8 @@ remove it from the Ninja command.
236237
#. The ``-B`` argument was undocumented for a while and is only officially
237238
supported since `CMake version 3.14
238239
<https://cmake.org/cmake/help/v3.14/release/3.14.html#command-line>`_
240+
#. If you want to have a standalone LLDB build with tests enabled, you also
241+
need to pass in ``-DLLVM_ENABLE_RUNTIME='libcxx;libcxxabi;libunwind'`` to your CMake invocation when configuring your LLVM standalone build.
239242

240243
.. _CommonCMakeOptions:
241244

0 commit comments

Comments
 (0)