Skip to content

Commit cbeb853

Browse files
authored
Merge pull request #289 from ehuss/alt-docs
Document alt builds
2 parents a8fbd08 + d34a247 commit cbeb853

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

guide/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Bisection boundaries](boundaries.md)
99
- [Rustup toolchains](rustup.md)
1010
- [Git bisect a custom build](git-bisect.md)
11+
- [Alt builds](alt.md)
1112
- [Examples](examples/index.md)
1213
- [Checking diagnostics](examples/diagnostics.md)
1314
- [Scripting on Windows](examples/windows-scripting.md)

guide/src/alt.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Alt builds
2+
3+
Each commit also generates what are called "alt" builds.
4+
These are builds of rustc with some different options set.
5+
As of August 2023, these include:
6+
7+
* `rust.parallel-compiler`
8+
* `llvm.assertions`
9+
* `rust.verify-llvm-ir`
10+
11+
For more information on these settings, see the [`config.toml` docs].
12+
These alt settings are defined in [`ci/run.sh`].
13+
14+
Alt builds are only available for a few targets.
15+
Look for the `-alt` builds in [`ci.yml`].
16+
17+
This can be useful if you are bisecting an LLVM issue.
18+
With LLVM assertions enabled, alt builds have checks that can help identify broken assumptions.
19+
20+
Alt builds are only made for commit builds, and not nightly releases.
21+
You will need to specify `--by-commit` (or use a hash in the `--start` or `--end` flags) to only use commit builds.
22+
23+
```sh
24+
cargo bisect-rustc --alt --by-commit
25+
```
26+
27+
[`config.toml` docs]: https://github.com/rust-lang/rust/blob/master/config.example.toml
28+
[`ci/run.sh`]: https://github.com/rust-lang/rust/blob/c0b6ffaaea3ebdf5f7a58fc4cf7ee52c91077fb9/src/ci/run.sh#L99-L105
29+
[`ci.yml`]: https://github.com/rust-lang/rust/blob/HEAD/src/ci/github-actions/ci.yml

0 commit comments

Comments
 (0)