[clang] a01579a - [NFC] Suggest Release mode in clang GettingStarted.html

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 10 10:33:50 PDT 2022


Author: Shivam Gupta
Date: 2022-06-10T11:00:05+05:30
New Revision: a01579ad0a1bde4d90f4fb656f07586c3097428a

URL: https://github.com/llvm/llvm-project/commit/a01579ad0a1bde4d90f4fb656f07586c3097428a
DIFF: https://github.com/llvm/llvm-project/commit/a01579ad0a1bde4d90f4fb656f07586c3097428a.diff

LOG: [NFC] Suggest Release mode in clang GettingStarted.html

This fix https://github.com/llvm/llvm-project/issues/23841.
Lots of beginners are not of aware of this option do suggesting it here
would be helpful.

Added: 
    

Modified: 
    clang/www/get_started.html

Removed: 
    


################################################################################
diff  --git a/clang/www/get_started.html b/clang/www/get_started.html
index ab5f7fac6a6c9..48ce7f8edbbcf 100755
--- a/clang/www/get_started.html
+++ b/clang/www/get_started.html
@@ -69,9 +69,13 @@ <h3 id="buildNix">On Unix-like Systems</h3>
     <li><tt>cd llvm-project</tt></li>
     <li><tt>mkdir build</tt> (in-tree build is not supported)</li>
     <li><tt>cd build</tt></li>
-    <li><tt>cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm</tt></li>
+    <li>This builds both LLVM and Clang in release mode. Alternatively, if
+        you need a debug build, switch Release to Debug. See
+        <a href="https://llvm.org/docs/CMake.html#frequently-used-cmake-variables">frequently used cmake variables</a>
+        for more options.
+    </li>
+    <li><tt>cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../llvm</tt></li>
     <li><tt>make</tt></li>
-    <li>This builds both LLVM and Clang for debug mode.</li>
     <li>Note: For subsequent Clang development, you can just run
         <tt>make clang</tt>.</li>
     <li>CMake allows you to generate project files for several IDEs: Xcode,


        


More information about the cfe-commits mailing list