diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-27 18:56:46 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-27 18:56:46 +0000 |
| commit | aaa4e541ee1ce764eb58f848563bca0b8a330f72 (patch) | |
| tree | d7dff9106be7c55f3c50ee8a4b07a20ca0e98344 /src/bootstrap | |
| parent | d89582c8e5171f9d9a5b3c0feedb9f7be114c90e (diff) | |
| download | rust-aaa4e541ee1ce764eb58f848563bca0b8a330f72.tar.gz rust-aaa4e541ee1ce764eb58f848563bca0b8a330f72.zip | |
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.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |
