Skip to content

Commit

Permalink
handle dry runs in dist::CodegenBackend
Browse files Browse the repository at this point in the history
self.number_of_times_dry_runs_have_caused_issues += 1;
  • Loading branch information
lqd committed Oct 29, 2023
1 parent aefd7ac commit f656acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f656acc

Please sign in to comment.