Rollup merge of #117872 - Mark-Simulacrum:fwd-port-cranelift, r=onur-ozkan

Cranelift isn't available on non-nightly channels

This commit already landed as part of beta branching, this PR just puts it on master.
This commit is contained in:
Takayuki Maeda 2023-11-14 00:54:18 +09:00 committed by GitHub
commit b0a68a4414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1630,14 +1630,11 @@ fn filter(contents: &str, marker: &str) -> String {
prepare("rust-analysis");
prepare("clippy");
prepare("rust-analyzer");
for tool in &["rust-docs", "rust-demangler", "miri"] {
for tool in &["rust-docs", "rust-demangler", "miri", "rustc-codegen-cranelift"] {
if built_tools.contains(tool) {
prepare(tool);
}
}
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");