handle dry runs in dist::CodegenBackend

self.number_of_times_dry_runs_have_caused_issues += 1;
This commit is contained in:
Rémy Rakic 2023-10-29 13:12:02 +00:00
parent aefd7ace91
commit f656accdf5

View File

@ -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.