Explicitly mark which targets to distribute cg_clif for in CI

This avoids needlessly building cg_clif for other targets and makes it
easier for the dist code to determine if it should distribute cg_clif as
component.
This commit is contained in:
bjorn3 2023-10-27 18:56:46 +00:00
parent d89582c8e5
commit aaa4e541ee
4 changed files with 27 additions and 7 deletions

View file

@ -1624,7 +1624,9 @@ impl Step for Extended {
prepare(tool);
}
}
prepare("rustc-codegen-cranelift");
if builder.config.rust_codegen_backends.contains(&INTERNER.intern_str("cranelift")) {
prepare("rustc-codegen-cranelift");
}
// create an 'uninstall' package
builder.install(&etc.join("pkg/postinstall"), &pkg.join("uninstall"), 0o755);
pkgbuild("uninstall");