Add Enzyme to build-manifest

This commit is contained in:
Jakub Beránek
2026-04-03 13:13:55 +02:00
parent 1b7064ba11
commit c03847f982
2 changed files with 23 additions and 3 deletions
+20 -3
View File
@@ -37,8 +37,24 @@ fn is_nightly_only(pkg: &PkgType) -> bool {
| PkgType::JsonDocs
| PkgType::RustcCodegenCranelift
| PkgType::RustcCodegenGcc
| PkgType::Gcc { .. } => true,
_ => false,
| PkgType::Gcc { .. }
| PkgType::Enzyme => true,
PkgType::Rust
| PkgType::RustSrc
| PkgType::Rustc
| PkgType::RustcDev
| PkgType::RustcDocs
| PkgType::ReproducibleArtifacts
| PkgType::RustMingw
| PkgType::RustStd
| PkgType::Cargo
| PkgType::HtmlDocs
| PkgType::RustAnalysis
| PkgType::RustAnalyzer
| PkgType::Clippy
| PkgType::Rustfmt
| PkgType::LlvmTools
| PkgType::LlvmBitcodeLinker => false,
}
}
@@ -313,7 +329,8 @@ fn target_host_combination(&mut self, host: &str, manifest: &Manifest) -> Option
| PkgType::RustcCodegenCranelift
| PkgType::RustcCodegenGcc
| PkgType::Gcc { .. }
| PkgType::LlvmBitcodeLinker => {
| PkgType::LlvmBitcodeLinker
| PkgType::Enzyme => {
extensions.push(host_component(pkg));
}
PkgType::RustcDev => {
+3
View File
@@ -88,6 +88,7 @@ pub(crate) fn all() -> Vec<PkgType> {
Gcc = "gcc"; preview = true; suffixes = [
"x86_64-unknown-linux-gnu"
],
Enzyme = "enzyme"; preview = true,
}
impl PkgType {
@@ -126,6 +127,7 @@ fn should_use_rust_version(&self) -> bool {
PkgType::RustMingw => true,
PkgType::RustAnalysis => true,
PkgType::LlvmBitcodeLinker => true,
PkgType::Enzyme => true,
}
}
@@ -162,6 +164,7 @@ pub(crate) fn targets(&self) -> &[&str] {
RustAnalysis => TARGETS,
LlvmTools => TARGETS,
LlvmBitcodeLinker => HOSTS,
Enzyme => HOSTS,
}
}