This showcases the current state of my project to build a fully hermetic cross-compilation c/c++ bazel toolchain.
The toolchain is made of 1 “bootstrapped” toolchain that builds all the default libs (libc (glibc stubs), libcxx, compiler-rt, CRT) and that passes include and libs artifacts to a second toolchain that takes care of building the end program.
This video shows an entire cross compilation process for a simple hello world in c++ in an environment that has no clang, no includes. Everything is cross compiled from source.