Skip to content

[clang] Add build type to LibASTMatchersTutorial.rst cmake #76301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

linux4life798
Copy link
Contributor

@linux4life798 linux4life798 commented Dec 23, 2023

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.

Add the required CMAKE_BUILD_TYPE to the cmake configuration line.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Dec 23, 2023
@llvmbot
Copy link
Member

llvmbot commented Dec 23, 2023

@llvm/pr-subscribers-clang

Author: Craig Hesling (linux4life798)

Changes

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 --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.

@linux4life798
Copy link
Contributor Author

@tbaederr, thanks for the review! Can you merge the change or should I reach out to another reviewer?

Best,

Craig

@tbaederr tbaederr merged commit 8346e86 into llvm:main Dec 30, 2023
@linux4life798 linux4life798 deleted the fix-LibASTMatchersTutorial branch December 31, 2023 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants