From aaa4e541ee1ce764eb58f848563bca0b8a330f72 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:56:46 +0000 Subject: 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. --- src/bootstrap/src/core/build_steps/dist.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index acab3cffe07..b578c5ec295 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -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"); -- cgit 1.4.1-3-g733a5