handle dry runs in dist::CodegenBackend
self.number_of_times_dry_runs_have_caused_issues += 1;
This commit is contained in:
parent
aefd7ace91
commit
f656accdf5
@ -1298,6 +1298,10 @@ fn make_run(run: RunConfig<'_>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
|
fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
|
||||||
|
if builder.config.dry_run() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
// This prevents rustc_codegen_cranelift from being built for "dist"
|
// This prevents rustc_codegen_cranelift from being built for "dist"
|
||||||
// or "install" on the stable/beta channels. It is not yet stable and
|
// or "install" on the stable/beta channels. It is not yet stable and
|
||||||
// should not be included.
|
// should not be included.
|
||||||
|
Loading…
Reference in New Issue
Block a user