Skip to content

Commit 8c84e65

Browse files
authored
Update locally-built rustc instructions
1 parent 08ab8ce commit 8c84e65

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

CONTRIBUTING.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,22 @@ tracing) enabled.
141141

142142
The setup for a local rustc works as follows:
143143
```sh
144+
# Clone the rust-lang/rust repo.
144145
git clone https://github.com/rust-lang/rust/ rustc
145146
cd rustc
146147
cp config.toml.example config.toml
147148
# Now edit `config.toml` and set `debug-assertions = true`.
148-
# This step can take 30 minutes and more.
149-
./x.py build src/rustc
149+
150+
# Build a stage 2 rustc.
151+
# This step can take 30 minutes or more.
152+
./x.py build compiler/rustc --stage 2
150153
# If you change something, you can get a faster rebuild by doing
151-
./x.py --keep-stage 0 build src/rustc
154+
./x.py --keep-stage 0 build compiler/rustc --stage 2
152155
# You may have to change the architecture in the next command
153156
rustup toolchain link custom build/x86_64-unknown-linux-gnu/stage2
154157
# Now cd to your Miri directory, then configure rustup
155158
rustup override set custom
156159
```
157160

158-
With this, you should now have a working development setup! See
161+
With this, you should now have a working development setup! See
159162
[above](#building-and-testing-miri) for how to proceed working on Miri.

0 commit comments

Comments
 (0)