RFC: Requiring Swift to build the Swift toolchain

@Douglas_Gregor Now that Swift 6 has shipped and these requirements are in place, is there any documentation that describes what we should expect in terms of the bootstrapping process we've discussed here?

I ask because of some exploration in this thread:

tl;dr: building Swift 6.0.1 using Swift 5.10.1 and the lld linker leads to a broken lldb/repl; building Swift 6.0.1 using Swift 6.0.1 and the lld linker leads to a working lldb/repl.

I suspect that this is an unintentional bug, but it's also entirely possible that my expectations are misplaced: I'm trying to build a Swift 6.0.1 compiler using Swift 5.10.1 all in one go, but maybe that's not intended to be supported, and I need to use Swift 5.10.1 to bootstrap a minimal 6.0.1 compiler, then use that to build the full 6.0.1 compiler?

I don't know if any concrete decisions have been made to support (or not support) this build process, but it'd be great to figure out what guarantees we make/want to make about how Swift should be built going forward.

2 Likes