A simple build script for compiling LLVM's libcxx, libcxxabi, and libunwind against picolibc for bare-metal x86_64 targets.
This project builds a freestanding C++ standard library suitable for hypervisors and embedded systems by combining:
- LLVM's libcxx - Modern C++ standard library implementation
- Picolibc - Lightweight C library for embedded systems
- Cross-compilation - Targeting
x86_64-unknown-nonebare-metal
clangandllvmtoolchainmeson(version 0.50+) for picolibccmakeandninjafor LLVMgitfor downloading sourcesjustcommand runnerccachespeed up clean builds
- Clone or create this project structure
- Run the complete build process:
justThis will:
- Download LLVM and picolibc sources
- Build picolibc with freestanding configuration
- Build LLVM libcxx, libcxx-abi and libunwind against picolibc
- Install everything to
install/