Do not copy rustc rlibs into the sysroot of the build compiler by Kobzol · Pull Request #146203 · rust-lang/rust (original) (raw)

Recent advancements in bootstrapping technology have allowed us to get rid of RustcLink, and thus automatic copying of rustc rlibs into the sysroot of the build compiler, which was "polluting it". This PR adds the same approach used for rmeta artifacts, where we store the artifacts in a separate directory, and then pass them using -L when compiling tools that actually need the rlib artifacts.

As usually, download-ci-rustc is special, but it should work, somehow, for now.

The PR is not done yet, we will actually have to copy the artifacts into the build compiler sysroot when doing dist of rustc-dev. Opening it to see what CI says.