[libc-commits] [PATCH] D140826: [libc] Add documentation on hacking with vscode

Jeff Bailey via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jan 5 09:27:50 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6e5c35819e31: [libc] Add documentation on hacking with vscode (authored by jeffbailey).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140826/new/

https://reviews.llvm.org/D140826

Files:
  libc/docs/build_and_test.rst


Index: libc/docs/build_and_test.rst
===================================================================
--- libc/docs/build_and_test.rst
+++ libc/docs/build_and_test.rst
@@ -4,6 +4,9 @@
 Building and Testing the libc
 =============================
 
+Build modes
+===========
+
 The libc can be built and tested in two different modes:
 
 #. **The overlay mode** - In this mode, one uses the static archive from LLVM's
@@ -41,3 +44,21 @@
       .. code-block:: sh
 
         $> ninja libc-api-test
+
+Building with VSCode
+====================
+
+As a quickstart to using VSCode for development, install the cmake extension
+and put the following in your settings.json file:
+
+.. code-block:: javascript
+
+   {
+     "cmake.sourceDirectory": "${workspaceFolder}/llvm",
+     "cmake.configureSettings": {
+         "LLVM_ENABLE_PROJECTS" : "libc",
+         "LLVM_LIBC_FULL_BUILD" : true,
+         "LLVM_ENABLE_SPHINX" : true,
+         "LIBC_INCLUDE_DOCS" : true
+     }
+   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140826.486605.patch
Type: text/x-patch
Size: 980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230105/7b543ff5/attachment-0001.bin>


More information about the libc-commits mailing list