The author created a 357-byte stage0 hermetic C++ toolchain for Bazel, inspired by the Guix/NixOS bootstrap approach. Using an LLM to help complete the mechanical steps, they achieved a working toolchain that can build cc_binary targets without relying on prebuilt binaries.
Background
The stage0 bootstrap concept originated from Guix and has been adopted by NixOS to minimize binary seeds. Bazel's rules_cc has not provided a hermetic C++ toolchain, leaving users reliant on prebuilt binaries.
- Source
- Lobsters
- Published
- Aug 11, 2026 at 03:18 AM
- Score
- 6.0 / 10