diff options
| author | Jakub Beránek <jakub.beranek@vsb.cz> | 2024-07-07 18:26:15 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-07-12 20:15:19 +0200 |
| commit | 1089de43394aace6ea7e88bd2bb3b7546a7883fa (patch) | |
| tree | 409b4d51839e4b1a5efa27ad31312dcce846c667 /src | |
| parent | 0cab9626f416f0f6bcf65221a3ed8ee38e69e97c (diff) | |
| download | rust-1089de43394aace6ea7e88bd2bb3b7546a7883fa.tar.gz rust-1089de43394aace6ea7e88bd2bb3b7546a7883fa.zip | |
Simplify command executions for plain source tarballs
If we're in dry run mode, the command will return an empty string, so we can just execute it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 7bc5405e92f..aebec60112f 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -1060,11 +1060,7 @@ impl Step for PlainSourceTarball { cmd.arg("--sync").arg(manifest_path); } - let config = if !builder.config.dry_run() { - cmd.capture().run(builder).stdout() - } else { - String::new() - }; + let config = cmd.capture().run(builder).stdout(); let cargo_config_dir = plain_dst_src.join(".cargo"); builder.create_dir(&cargo_config_dir); |
