]> git.lizzy.rs Git - rust.git/commit
Change --keep-stage to apply more
authorMark Rousskov <mark.simulacrum@gmail.com>
Mon, 2 Jul 2018 22:04:58 +0000 (16:04 -0600)
committerMark Rousskov <mark.simulacrum@gmail.com>
Mon, 2 Jul 2018 22:12:56 +0000 (16:12 -0600)
commit9eda4aabff138add785c6e672d9c67cc612f7503
tree7b882625ef2ed45384c6629f2569181a30b646e7
parentf5570d0ef66847d6617682058a9fa680cdce392b
Change --keep-stage to apply more

Previously, the --keep-stage argument would only function for compilers
that were depended on by future stages. For example, if trying to build
a stage 1 compiler you could --keep-stage 0 to avoid re-building the
stage 0 compiler. However, this is often not what users want in
practice.

The new implementation essentially skips builds all higher stages of the
compiler, so an argument of 1 to keep-stage will skip rebuilds of the
libraries, just linking them into the sysroot. This is unlikely to work
well in cases where metadata or similar changes have been made, but is
likely fine otherwise.

This change is somewhat untested, but since it shouldn't have any effect
except with --keep-stage, I don't see that as a large problem.
src/bootstrap/compile.rs