@@ -19,7 +19,7 @@ To start, copy [`config.toml.example`] to `config.toml`:
19
19
Then you will want to open up the file and change the following
20
20
settings (and possibly others, such as ` llvm.ccache ` ):
21
21
22
- ```
22
+ ``` toml
23
23
[llvm ]
24
24
# Enables LLVM assertions, which will check that the LLVM bitcode generated
25
25
# by the compiler is internally consistent. These are particularly helpful
@@ -53,15 +53,15 @@ Once you've created a config.toml, you are now ready to run
53
53
probably the best "go to" command for building a local rust:
54
54
55
55
```
56
- ./x.py build --incremental --stage 1 src/libstd
56
+ ./x.py build -i --stage 1 src/libstd
57
57
```
58
58
59
59
What this command will do is the following:
60
60
61
61
- Using the beta compiler (also called stage 0), it will build the
62
62
standard library and rustc from the ` src ` directory. The resulting
63
63
compiler is called the "stage 1" compiler.
64
- - During this build, the ` -- incremental ` switch enables incremental
64
+ - During this build, the ` -i ` (or ` -- incremental` ) switch enables incremental
65
65
compilation, so that if you later rebuild after editing things in
66
66
` src ` , you can save a bit of time.
67
67
- Using this stage 1 compiler, it will build the standard library.
@@ -72,7 +72,8 @@ get if you just say `./x.py build`) has quite a few more steps:
72
72
73
73
- Build stage1 rustc with stage0 compiler
74
74
- Build libstd with stage1 compiler (up to here is the same)
75
- - Build stage2 rustc with stage1 compiler (this part is new)
75
+ - Build rustc from ` src ` again, this time with the stage1 compiler (this part is new)
76
+ - The resulting compiler here is called the "stage2" compiler
76
77
- Build libstd with stage2 compiler
77
78
- Build librustdoc and a bunch of other things
78
79
@@ -83,7 +84,8 @@ of files in your `build` directory. In order to actually run the
83
84
resulting rustc, we recommend creating rustup toolchains. The first
84
85
one will run the stage1 compiler (which we built above). The second
85
86
will execute the stage2 compiler (which we did not build, but which
86
- you will likely build at some point).
87
+ you will likely need to build at some point; for example, if you want
88
+ to run the entire test suite).
87
89
88
90
```
89
91
> rustup toolchain link stage1 build/<host-triple>/stage1
0 commit comments