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
+31-4
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,20 @@ things up.
163
163
164
164
### Building and Testing `rustc`
165
165
166
+
Here is a summary of the different commands for reference, but you probably
167
+
should still read the rest of the section:
168
+
169
+
| Command | When to use it |
170
+
| --- | --- |
171
+
|`x.py check`| Quick check to see if things compile; rust-analyzer can run this automatically for you |
172
+
|`x.py build --stage 1`| Build just the 1st stage of the compiler; this is faster than building stage 2 and usually good enough |
173
+
|`x.py build --stage 1 --keep-stage 1`| Build the 1st stage of the compiler and skips rebuilding the 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.) |
174
+
|`x.py test --stage 1`| Run the test suite using the stage1 compiler (first build) |
175
+
|`x.py test --stage 1 --keep-stage 1`| Run the test suite using the stage1 compiler (subsequent builds) |
176
+
|`x.py test --stage 1 --bless [--keep-stage 1]`| Run the test suite using the stage1 compiler _and_ update expected test output. |
177
+
|`x.py build`| Do a full 2-stage build. You almost never want to do this. |
178
+
|`x.py test`| Do a full 2-stage build and run all tests. You almost never want to do this. |
179
+
166
180
To do a full 2-stage build of the whole compiler, you should run this (after
167
181
updating `config.toml` as mentioned above):
168
182
@@ -206,14 +220,21 @@ different test suites [in this chapter][testing].
0 commit comments