diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-10-29 13:12:02 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-10-29 13:12:02 +0000 |
| commit | f656accdf534bc58a021e2d7f04bf5900e2ba8ad (patch) | |
| tree | 1fbf3c6aba284183a04d7885a05f630205e10265 /src/bootstrap | |
| parent | aefd7ace91b58eb8cf00817de24a42ae2b3956d3 (diff) | |
| download | rust-f656accdf534bc58a021e2d7f04bf5900e2ba8ad.tar.gz rust-f656accdf534bc58a021e2d7f04bf5900e2ba8ad.zip | |
handle dry runs in `dist::CodegenBackend`
self.number_of_times_dry_runs_have_caused_issues += 1;
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 197ce78d885..6e80c55c8ce 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -1298,6 +1298,10 @@ impl Step for CodegenBackend { } fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> { + if builder.config.dry_run() { + return None; + } + // This prevents rustc_codegen_cranelift from being built for "dist" // or "install" on the stable/beta channels. It is not yet stable and // should not be included. |
