File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -141,19 +141,22 @@ tracing) enabled.
141
141
142
142
The setup for a local rustc works as follows:
143
143
``` sh
144
+ # Clone the rust-lang/rust repo.
144
145
git clone https://github.com/rust-lang/rust/ rustc
145
146
cd rustc
146
147
cp config.toml.example config.toml
147
148
# 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
150
153
# 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
152
155
# You may have to change the architecture in the next command
153
156
rustup toolchain link custom build/x86_64-unknown-linux-gnu/stage2
154
157
# Now cd to your Miri directory, then configure rustup
155
158
rustup override set custom
156
159
```
157
160
158
- With this, you should now have a working development setup! See
161
+ With this, you should now have a working development setup! See
159
162
[ above] ( #building-and-testing-miri ) for how to proceed working on Miri.
You can’t perform that action at this time.
0 commit comments