Skip to content

Commit 8346e86

Browse files
[clang] Add build type to LibASTMatchersTutorial.rst cmake (#76301)
Add the required CMAKE_BUILD_TYPE to the cmake configuration line. We drop the comment about enabling tests, since it is already implied and doesn't add any additional context.
1 parent c7c2bbb commit 8346e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/docs/LibASTMatchersTutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Okay. Now we'll build Clang!
5050
5151
cd ~/clang-llvm
5252
mkdir build && cd build
53-
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_BUILD_TESTS=ON # Enable tests; default is off.
53+
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TESTS=ON
5454
ninja
5555
ninja check # Test LLVM only.
5656
ninja clang-test # Test Clang only.

0 commit comments

Comments
 (0)