Skip to content

Commit

Permalink
Merge pull request #289 from ehuss/alt-docs
Browse files Browse the repository at this point in the history
Document alt builds
  • Loading branch information
oli-obk authored Aug 28, 2023
2 parents a8fbd08 + d34a247 commit cbeb853
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions guide/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [Bisection boundaries](boundaries.md)
- [Rustup toolchains](rustup.md)
- [Git bisect a custom build](git-bisect.md)
- [Alt builds](alt.md)
- [Examples](examples/index.md)
- [Checking diagnostics](examples/diagnostics.md)
- [Scripting on Windows](examples/windows-scripting.md)
Expand Down
29 changes: 29 additions & 0 deletions guide/src/alt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Alt builds

Each commit also generates what are called "alt" builds.
These are builds of rustc with some different options set.
As of August 2023, these include:

* `rust.parallel-compiler`
* `llvm.assertions`
* `rust.verify-llvm-ir`

For more information on these settings, see the [`config.toml` docs].
These alt settings are defined in [`ci/run.sh`].

Alt builds are only available for a few targets.
Look for the `-alt` builds in [`ci.yml`].

This can be useful if you are bisecting an LLVM issue.
With LLVM assertions enabled, alt builds have checks that can help identify broken assumptions.

Alt builds are only made for commit builds, and not nightly releases.
You will need to specify `--by-commit` (or use a hash in the `--start` or `--end` flags) to only use commit builds.

```sh
cargo bisect-rustc --alt --by-commit
```

[`config.toml` docs]: https://github.com/rust-lang/rust/blob/master/config.example.toml
[`ci/run.sh`]: https://github.com/rust-lang/rust/blob/c0b6ffaaea3ebdf5f7a58fc4cf7ee52c91077fb9/src/ci/run.sh#L99-L105
[`ci.yml`]: https://github.com/rust-lang/rust/blob/HEAD/src/ci/github-actions/ci.yml

0 comments on commit cbeb853

Please sign in to comment.