[llvm] [docs][CMake] Add CMakePreset, improve VS documentation (PR #84760)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 07:30:08 PDT 2024
================
@@ -119,7 +120,43 @@ These instruction were tested with Visual Studio 2019 and Python 3.9.6:
Select the last link: ``Source code (zip)`` and unpack the downloaded file using
Windows Explorer built-in zip support or any other unzip tool.
-12. Finally, configure LLVM using CMake:
+12. Open the LLVM folder in Visual Studio or configure LLVM with CMake.
+
+ Recently Visual Studio has added native support for CMake which will run and
+ manage the CMake settings for you instead of you manually having to generate
+ a Visual Studio Soluion. This is the recommended way to build and debug LLVM
+ in Visual Studio 2022.
+
+ If you want to generate a Visual Studio Solution for older versions of Visual
+ Studio or becasue that is a workflow that suites you better please refer to the
+ chapter below on :ref:`generating Visual Studio Solution<gen_vs_cmake>`.
+
+ To use the native CMake support, launch `Visual Studio 2022` and select the
+ option `Open a Local Folder` and open the root `llvm-project` folder. This
+ will automatically launch CMake (have some patience, it can be a bit slow)
+ and populate the interface.
+
+ LLVM ships with a default `CMakePresets.json` that is supposed to make it easy
+ to get started, but usually you need to modify the setings used, the best way
----------------
sylvain-audi wrote:
typo "setings" -> "settings"
https://github.com/llvm/llvm-project/pull/84760
More information about the llvm-commits
mailing list