[libc-commits] [libc] [libc] [doc] explain the need of `clang` (PR #74855)
via libc-commits
libc-commits at lists.llvm.org
Fri Dec 8 08:12:15 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
<details>
<summary>Changes</summary>
This patch mentions some more details of the infra of libc.
---
Full diff: https://github.com/llvm/llvm-project/pull/74855.diff
1 Files Affected:
- (modified) libc/docs/full_host_build.rst (+6-3)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/74855
More information about the libc-commits
mailing list