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 committed by onur-ozkan
parent a9913ebed0
commit 451778b551

View File

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