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 @@ impl Step for Extended {
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