@@ -79,7 +79,7 @@ recommend trying to build on a Raspberry Pi :P
79
79
80
80
Building the compiler takes more than half an hour on my moderately powerful
81
81
laptop. The first time you build the compiler, LLVM will also be built unless
82
- you use your system's LLVM ([ see below] [ configsec ] ).
82
+ you use CI-built LLVM ([ see below] [ configsec ] ).
83
83
84
84
[ configsec ] : #configuring-the-compiler
85
85
@@ -123,17 +123,17 @@ The compiler has a configuration file which contains a ton of settings. We will
123
123
provide some recommendations here that should work for most, but [ check out
124
124
this chapter for more info] [ config ] .
125
125
126
- [ config ] : ./building/how-to-build-and-run.html #create-a-configtoml
126
+ [ config ] : ./building/how-to-build-and-run.md #create-a-configtoml
127
127
128
128
In the top level of the repo:
129
129
130
- ``` sh
130
+ ``` console
131
131
$ x.py setup
132
132
```
133
133
134
134
This will walk you through an interactive setup for x.py that looks like this:
135
135
136
- ```
136
+ ``` console
137
137
$ x.py setup
138
138
Welcome to the Rust project! What do you want to do with x.py?
139
139
a) Contribute to the standard library
@@ -150,11 +150,15 @@ To get started, try one of the following commands:
150
150
For more suggestions, see https://rustc-dev-guide.rust-lang.org/building/suggested.html
151
151
```
152
152
153
- You may also want to set up [ system LLVM] [ sysllvm ] to avoid building LLVM from source.
153
+ Note that by default, ` x.py setup ` will use CI-built LLVM if available for your
154
+ platform so that you don't need to build LLVM in addition to building the
155
+ compiler. In some circumstances, such as when updating the version of LLVM used
156
+ by ` rustc ` , you may want to temporarily disable this feature. See the [ "Updating
157
+ LLVM"] for more.
154
158
155
- [ sysllvm ] : ./building/suggested .html#skipping- llvm-build
159
+ [ "Updating LLVM" ] : https://rustc-dev-guide.rust-lang.org/backend/updating-llvm .html?highlight=download-ci- llvm#feature-updates
156
160
157
- ### ` ./ x.py` Intro
161
+ ### x.py Intro
158
162
159
163
` rustc ` is a _ bootstrapping_ compiler, which means that it is written in Rust
160
164
and thus needs to be compiled by itself. So where do you
0 commit comments