[libc] Rewrite "Full Host Build" instructions (#180439) This commit restructures the full_host_build.rst documentation to better serve two use cases: 1. Standard Building and Testing: Add a new introductory section with simplified instructions for local development. This covers basic build configuration, building/testing without a full sysroot, and documentation generation. 2. Building a Sysroot: Reorganize the comprehensive sysroot setup instructions into a clear 5-step guide: - Step 1: Preparation (environment variables) - Step 2: Linux Headers (copying headers into sysroot) - Step 3: Build and Install Runtimes (cmake configuration and ninja build) - Step 4: Configure the Compiler Wrapper (creating clang config file) - Step 5: Verification (testing with sample C program) Key improvements: - Restructure content to lead with simpler development workflow - Replace bootstrapping build instructions with clearer sysroot instructions - Fix typo: "non-triivial" -> "non-trivial" - Remove directory changes that can be confusing. All commands are run from the root of the llvm tree - Improve code block formatting and add complete working examples - Make it easy to cut and paste shell commands - Simplify "Hello, World!" example - Simplify and clarify assumptions and requirements - Remove obsolete notes about C++ standard library support Tested: * Built runtimes build and tests * Built sysroot and verified with sample C program * Verified document builds and looks right in VSCode browser
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.