bootstrap: avoid producing the rust tarball during dry runs

This commit is contained in:
Pietro Albini 2020-12-07 17:23:26 +01:00
parent f18335edb2
commit ae12a0c200
No known key found for this signature in database
GPG Key ID: 3E06ABE80BAAF19C

View File

@ -1288,6 +1288,11 @@ fn run(self, builder: &Builder<'_>) {
let etc = builder.src.join("src/etc/installer");
// Avoid producing tarballs during a dry run.
if builder.config.dry_run {
return;
}
// When rust-std package split from rustc, we needed to ensure that during
// upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
// the std files during uninstall. To do this ensure that rustc comes