bootstrap: have a flag to switch stage0 alt build
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
When diagnosing bootstrap problems, it would be useful to have an easy way to switch stage0 to an "alt" build for debugging purposes (enabling debug assertions for llvm)
After a bit of digging I found that I could do that by setting artifacts_server=https://ci-artifacts.rust-lang.org/rustc-builds-alt
in src/stage0 and running ./x.py run src/tools/bump-stage0
but some kind of rustc.bootstrap=alt flag in bootstrap.toml which does this automatically during build might be more convenient.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the stage0 configuration in src/stage0 and the bootstrap.toml handling, then trace the existing ./x.py run src/tools/bump-stage0 flow. Add a rustc.bootstrap=alt option that selects the rustc-builds-alt artifacts server automatically. Done means a build using the flag switches stage0 to the alternate build without manually editing src/stage0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100