Skip to content

Commit

Permalink
[clang] Add build type to LibASTMatchersTutorial.rst cmake (#76301)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
linux4life798 committed Dec 30, 2023
1 parent c7c2bbb commit 8346e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/docs/LibASTMatchersTutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Okay. Now we'll build Clang!
cd ~/clang-llvm
mkdir build && cd build
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_BUILD_TESTS=ON # Enable tests; default is off.
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TESTS=ON
ninja
ninja check # Test LLVM only.
ninja clang-test # Test Clang only.
Expand Down

0 comments on commit 8346e86

Please sign in to comment.