@@ -21,18 +21,6 @@ git clone https://github.com/rust-lang/rust.git
2121cd rust
2222```
2323
24- ## Create a ` config.toml `
25-
26- To start, run ` ./x.py setup ` . This will do some initialization and create a
27- ` config.toml ` for you with reasonable defaults.
28-
29- Alternatively, you can write ` config.toml ` by hand. See ` config.toml.example `
30- for all the available settings and explanations of them. See ` src/bootstrap/defaults ` for common settings to change.
31-
32- If you have already built ` rustc ` and you change settings related to LLVM, then you may have to
33- execute ` rm -rf build ` for subsequent configuration changes to take effect. Note that `./x.py
34- clean` will not cause a rebuild of LLVM.
35-
3624## What is ` x.py ` ?
3725
3826` x.py ` is the build tool for the ` rust ` repository. It can build docs, run tests, and compile the
@@ -51,6 +39,18 @@ of a checkout. It also looks up the appropriate version of `python` to use.
5139
5240You can install it with ` cargo install --path src/tools/x ` .
5341
42+ ## Create a ` config.toml `
43+
44+ To start, run ` ./x.py setup ` . This will do some initialization and create a
45+ ` config.toml ` for you with reasonable defaults.
46+
47+ Alternatively, you can write ` config.toml ` by hand. See ` config.toml.example ` for all the available
48+ settings and explanations of them. See ` src/bootstrap/defaults ` for common settings to change.
49+
50+ If you have already built ` rustc ` and you change settings related to LLVM, then you may have to
51+ execute ` rm -rf build ` for subsequent configuration changes to take effect. Note that `./x.py
52+ clean` will not cause a rebuild of LLVM.
53+
5454## Building the Compiler
5555
5656Note that building will require a relatively large amount of storage space.
0 commit comments