You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/getting-started.md
+20-22
Original file line number
Diff line number
Diff line change
@@ -175,19 +175,19 @@ should still read the rest of the section:
175
175
| Command | When to use it |
176
176
| --- | --- |
177
177
|`x.py check`| Quick check to see if things compile; rust-analyzer can run this automatically for you |
178
-
|`x.py build --stage 0 src/libstd`| Build only the standard library, without building the compiler |
179
-
|`x.py build --stage 1 src/libstd`| Build just the 1st stage of the compiler, along with the standard library; this is faster than building stage 2 and usually good enough |
180
-
|`x.py build --stage 1 --keep-stage 1 src/libstd`| Build the 1st stage of the compiler and skips rebuilding the standard library; this is useful after you've done an ordinary stage1 build to skip compilation time, but it can cause weird problems. (Just do a regular build to resolve.) |
181
-
|`x.py test --stage 1 [--keep-stage 1]`| Run the test suite using the stage1 compiler |
182
-
|`x.py test --stage 1 --bless [--keep-stage 1]`| Run the test suite using the stage1 compiler _and_ update expected test output. |
183
-
|`x.py build`| Do a full 2-stage build. You almost never want to do this. |
184
-
|`x.py test`| Do a full 2-stage build and run all tests. You almost never want to do this. |
178
+
|`x.py build --stage 0 [src/libstd]`| Build only the standard library, without building the compiler |
179
+
|`x.py build src/libstd`| Build just the 1st stage of the compiler, along with the standard library; this is faster than building stage 2 and usually good enough |
180
+
|`x.py build --keep-stage 1 src/libstd`| Build the 1st stage of the compiler and skips rebuilding the standard library; this is useful after you've done an ordinary stage1 build to skip compilation time, but it can cause weird problems. (Just do a regular build to resolve.) |
181
+
|`x.py test [--keep-stage 1]`| Run the test suite using the stage1 compiler |
182
+
|`x.py test --bless [--keep-stage 1]`| Run the test suite using the stage1 compiler _and_ update expected test output. |
183
+
|`x.py build --stage 2 src/rustc`| Do a full 2-stage build. You almost never want to do this. |
184
+
|`x.py test --stage 2`| Do a full 2-stage build and run all tests. You almost never want to do this. |
185
185
186
186
To do a full 2-stage build of the whole compiler, you should run this (after
187
187
updating `config.toml` as mentioned above):
188
188
189
189
```sh
190
-
./x.py build
190
+
./x.py build --stage 2 src/rustc
191
191
```
192
192
193
193
In the process, this will also necessarily build the standard libraries, and it
@@ -203,10 +203,10 @@ For most contributions, you only need to build stage 1, which saves a lot of tim
203
203
204
204
```sh
205
205
# Build the compiler (stage 1)
206
-
./x.py build --stage 1 src/libstd
206
+
./x.py build src/libstd
207
207
208
208
# Subsequent builds
209
-
./x.py build --stage 1 --keep-stage 1 src/libstd
209
+
./x.py build --keep-stage 1 src/libstd
210
210
```
211
211
212
212
This will take a while, especially the first time. Be wary of accidentally
@@ -228,17 +228,17 @@ different test suites [in this chapter][testing].
228
228
229
229
```sh
230
230
# First build
231
-
./x.py test--stage 1 src/test/ui
231
+
./x.py test src/test/ui
232
232
233
233
# Subsequent builds
234
-
./x.py test--stage 1 src/test/ui --keep-stage 1
234
+
./x.py test src/test/ui --keep-stage 1
235
235
```
236
236
237
237
If your changes impact test output, you can use `--bless` to automatically
0 commit comments