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 authored and onur-ozkan committed Nov 4, 2023
1 parent 314b390 commit 91d297f
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 91d297f

Please sign in to comment.