|
cpp-toolchain documentation
Up-to-date C++ toolchain images for the complete development cycle - GNU and LLVM side by side
|
The public scripts are published self-contained: fetch one from a release and run it on any Debian/Ubuntu-based host, with no image and no checkout involved. In this repository they source their shared helpers instead of carrying them, so fetch the published copy rather than the file here - see Using a public script on its own. Using the images is the Docker route instead.
| Directory | Scope | What lives there |
|---|---|---|
| install/ | Public - standalone | Toolchain installers - cmake.sh, gcc.sh, llvm.sh, binutils.sh, doxygen.sh, ninja.sh, bazel.sh, build2.sh. Reusable on any Debian/Ubuntu-based system, with no dependency on this repository. See install/README.md for the full option reference. |
| checks/ | Public - standalone | cxx-standards.sh - which C++ standards a compiler accepts. cxx-stdlibs.sh - which C++ standard libraries are installed, with the SONAME and ABI version a binary will need to find. c-stdlibs.sh - the same, for the C standard library. Point either at any machine, checkout or not. See checks/README.md. |
| build/ | Internal | iwyu.sh - include-what-you-use, which upstream publishes as source only. Internal: it builds against an LLVM at a given prefix, not against an arbitrary host. |
| checks/details/ | Internal | The image validation gate, which runs inside a built image: it knows this repo's expected package origins and asks its installers what is present. See docs/IMAGES_VALIDATION.md. |
| lib/ | Internal | shared.sh - one body per helper, sourced by every install/ and checks/ script that uses one. A published copy carries the helpers it needs inlined instead, composed from this file. |
| internal/ | Internal | This repository's own tooling, split by where it runs: host/ - the version-pin guard, the release-note renderer, the standalone composer and the promotion-record schema; image/ - the version collector and the smoke test, bind-mounted into a built image. Not reusable: they parse this repo's Dockerfile, renovate.json and releases/ records. See internal/README.md. |
The Dockerfile copies in and runs the install/ and build/ scripts, one per stage that needs one, and copies scripts/ whole into the throwaway validate stages so checks/ can run there.
lib/ is copied in beside them, because the install/, build/ and checks/ scripts source it and it has to reach every stage that runs one. internal/ is this repository's own tooling, which .dockerignore keeps out of the build context entirely - what has to reach a built image gets there by bind-mount instead.
checks/details/ is implementation detail of checks/, in the C++ sense of a nested detail namespace. Repo-specific like internal/, but unlike it these must ship into the image they validate.
Every file marked Public is published as a standalone file, so you can drop it into a project, a CI job or a plain shell - no image to pull, no repository to clone, no commitment to the rest of this toolchain:
Every one of them describes itself with --help, so the fetched file is its own documentation.
An asset is named for the directory it comes from, since a release asset name carries no directory of its own.
latest is the newest release, and skips the release candidates. Swap it for download/<tag> when you want the URL pinned, which is what you usually want in CI:
v1.4 publishes these without the prefix, as gcc.sh rather than install_gcc.sh; no release before it attaches them at all.
The Internal rows are not published at all. They reach the rest of the tree by relative path and only work inside a checkout or an image.