[clang] [clang] Add build type to LibASTMatchersTutorial.rst cmake (PR #76301)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 23 13:24:41 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Craig Hesling (linux4life798)
<details>
<summary>Changes</summary>
Add the required CMAKE_BUILD_TYPE to the cmake configuration line.
---
Full diff: https://github.com/llvm/llvm-project/pull/76301.diff
1 Files Affected:
- (modified) clang/docs/LibASTMatchersTutorial.rst (+1-1)
``````````diff
diff --git a/clang/docs/LibASTMatchersTutorial.rst b/clang/docs/LibASTMatchersTutorial.rst
index 37c9f178fa8df3..2a58502a8de4e7 100644
--- a/clang/docs/LibASTMatchersTutorial.rst
+++ b/clang/docs/LibASTMatchersTutorial.rst
@@ -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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/76301
More information about the cfe-commits
mailing list