From a01579ad0a1bde4d90f4fb656f07586c3097428a Mon Sep 17 00:00:00 2001 From: Shivam Gupta Date: Fri, 10 Jun 2022 10:59:50 +0530 Subject: [PATCH] [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. --- clang/www/get_started.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clang/www/get_started.html b/clang/www/get_started.html index ab5f7fac6a6c..48ce7f8edbbc 100755 --- a/clang/www/get_started.html +++ b/clang/www/get_started.html @@ -69,9 +69,13 @@ follows:

  • cd llvm-project
  • mkdir build (in-tree build is not supported)
  • cd build
  • -
  • cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
  • +
  • This builds both LLVM and Clang in release mode. Alternatively, if + you need a debug build, switch Release to Debug. See + frequently used cmake variables + for more options. +
  • +
  • cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../llvm
  • make
  • -
  • This builds both LLVM and Clang for debug mode.
  • Note: For subsequent Clang development, you can just run make clang.
  • CMake allows you to generate project files for several IDEs: Xcode,