Correct setup for building a compiler then its stdlib

You could try a toolchain file, but CMake isn’t really set up to support this. Too much wants to be able to inspect the compiler in general.

It’s probably the most reliable. Seeing as there is one compiler that self-hosts with CMake, there’s not much prior art here in the first place.