From c03847f9825aa3cd47434b1ee474875cf3ef4b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 3 Apr 2026 13:13:55 +0200 Subject: [PATCH] Add Enzyme to build-manifest --- src/tools/build-manifest/src/main.rs | 23 ++++++++++++++++++++--- src/tools/build-manifest/src/versions.rs | 3 +++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index afe87614e8c8..edcfc80890d3 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -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 => { diff --git a/src/tools/build-manifest/src/versions.rs b/src/tools/build-manifest/src/versions.rs index af4728da7a4e..56da7f7af7ea 100644 --- a/src/tools/build-manifest/src/versions.rs +++ b/src/tools/build-manifest/src/versions.rs @@ -88,6 +88,7 @@ pub(crate) fn all() -> Vec { 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, } }