mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
Add Enzyme to build-manifest
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user