[libc-commits] [libc] [libc] [doc] explain the need of `clang` (PR #74855)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Fri Dec 8 08:11:45 PST 2023
https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/74855
This patch mentions some more details of the infra of libc.
>From 81beab49eae3d333a1c2e0a2615fd407002d1c46 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: Fri, 8 Dec 2023 11:11:18 -0500
Subject: [PATCH] [libc] [doc] explain the need of `clang`
This patch mentions some more details of the infra of libc.
---
libc/docs/full_host_build.rst | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/libc/docs/full_host_build.rst b/libc/docs/full_host_build.rst
index 709ba70b22de4..0f23f19ceca06 100644
--- a/libc/docs/full_host_build.rst
+++ b/libc/docs/full_host_build.rst
@@ -60,9 +60,12 @@ to use the freshly built lld and compiler-rt.
We will go over some of the special options passed to the ``cmake`` command
above.
-* **Enabled Projects** - Since we want to build and install clang, lld
- and compiler-rt along with the libc, we specify
- ``clang;libc;lld;compiler-rt`` as the list of enabled projects.
+* **Enabled Projects** - Since we want to build and install ``clang``, ``lld``
+ and ``compiler-rt`` along with the ``libc``, we specify
+ ``clang;libc;lld;compiler-rt`` as the list of enabled projects. ``clang`` is
+ typically required along the full build as we employ the ``TableGen``
+ facilities to create headers. One may also add ``clang-tools-extra`` since
+ the in-tree ``clang-tidy/clangd`` can provide some essential checks for ``libc``.
* **The full build option** - Since we want to do build the full libc, we pass
``-DLLVM_LIBC_FULL_BUILD=ON``.
* **Scudo related options** - LLVM's libc uses
More information about the libc-commits
mailing list