Skip to content

Commit 97922a7

Browse files
committed
[lldb][docs] Add CAMKE_BUILD_TYPE to standlone build instructions
The first stage requires it, the second appears to default to debug mode, which works but it's better we advise release mode to match.
1 parent 8519143 commit 97922a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/docs/resources/build.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ Clang. Then we build the ``ALL`` target with ninja:
211211

212212
$ cmake -B /path/to/llvm-build -G Ninja \
213213
-DLLVM_ENABLE_PROJECTS=clang \
214+
-DCMAKE_BUILD_TYPE=Release \
214215
[<more cmake options>] /path/to/llvm-project/llvm
215216
$ ninja
216217

@@ -224,6 +225,7 @@ build directory for Clang, remember to pass its module path via ``Clang_DIR``
224225
::
225226

226227
$ cmake -B /path/to/lldb-build -G Ninja \
228+
-DCMAKE_BUILD_TYPE=Release \
227229
-DLLVM_DIR=/path/to/llvm-build/lib/cmake/llvm \
228230
[<more cmake options>] /path/to/llvm-project/lldb
229231
$ ninja lldb lldb-server

0 commit comments

Comments
 (0)