Build a C/C++ Application
Target audience: Developers Goal: Build a reproducible C or C++ binary using StageX's LLVM/Clang or GCC toolchain.
This page is under active development. StageX provides both LLVM/Clang and GCC toolchains for C and C++ development across all supported architectures.
What this guide will cover when complete:
- Selecting the appropriate toolchain (LLVM/Clang vs GCC) for your project
- Writing a Containerfile with
FROM scratchand the StageX C library packages - Statically linking against musl libc for fully reproducible builds
- Using the StageX package manager to pin toolchain versions by content hash
See Also
- Quick Start tutorial — Build your first reproducible binary with StageX.
- Explanation: Why LLVM/Clang — Technical rationale for LLVM as the default toolchain.