This demo showcases the current state of my project to build a fully hermetic cross-compilation c/c++ bazel toolchain.
This video shows the entire compilation process for a simple hello world in c++ that manually depends on every default libs (libc, libc++, compiler-rt, CRT) that are built entirely from zero (no prebuilts, no sysroot).
The entire build logic is based on the awesome work of the ziglang team and reuses a lot of what zig cc actually does but with just Bazel and clang.
The next step is to wrap this in a toolchain so that depending on defaultlibs is implicit.