Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/tools/build-manifest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ Then, you can generate the manifest and add it to `build/dist`:
cargo +nightly run --release -p build-manifest build/dist build/dist 1970-01-01 http://localhost:8000 nightly
```

After that, generate a SHA256 stamp for the manifest file:
After that, generate a SHA256 stamp for the manifest file, and create a symlink to point to the right directory:
```sh
sha256sum build/dist/channel-rust-nightly.toml > build/dist/channel-rust-nightly.toml.sha256
ln -s ${PWD}/build/dist build/1970-01-01
```

And start a HTTP server from the `build` directory:
Expand Down
23 changes: 20 additions & 3 deletions src/tools/build-manifest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down Expand Up @@ -313,7 +329,8 @@ impl Builder {
| PkgType::RustcCodegenCranelift
| PkgType::RustcCodegenGcc
| PkgType::Gcc { .. }
| PkgType::LlvmBitcodeLinker => {
| PkgType::LlvmBitcodeLinker
| PkgType::Enzyme => {
extensions.push(host_component(pkg));
}
PkgType::RustcDev => {
Expand Down
3 changes: 3 additions & 0 deletions src/tools/build-manifest/src/versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pkg_type! {
Gcc = "gcc"; preview = true; suffixes = [
"x86_64-unknown-linux-gnu"
],
Enzyme = "enzyme"; preview = true,
}

impl PkgType {
Expand Down Expand Up @@ -126,6 +127,7 @@ impl PkgType {
PkgType::RustMingw => true,
PkgType::RustAnalysis => true,
PkgType::LlvmBitcodeLinker => true,
PkgType::Enzyme => true,
}
}

Expand Down Expand Up @@ -162,6 +164,7 @@ impl PkgType {
RustAnalysis => TARGETS,
LlvmTools => TARGETS,
LlvmBitcodeLinker => HOSTS,
Enzyme => HOSTS,
}
}

Expand Down
Loading