@@ -44,8 +44,8 @@ by running `./x.py --help` or reading the [rustc dev guide][rustcguidebuild].
44
44
2 . Clone the [ source] with ` git ` :
45
45
46
46
``` sh
47
- $ git clone https://github.com/rust-lang/rust.git
48
- $ cd rust
47
+ git clone https://github.com/rust-lang/rust.git
48
+ cd rust
49
49
```
50
50
51
51
[ source ] : https://github.com/rust-lang/rust
@@ -57,7 +57,7 @@ by running `./x.py --help` or reading the [rustc dev guide][rustcguidebuild].
57
57
Copy the default ` config.toml.example ` to ` config.toml ` to get started.
58
58
59
59
``` sh
60
- $ cp config.toml.example config.toml
60
+ cp config.toml.example config.toml
61
61
```
62
62
63
63
If you plan to use ` x.py install` to create an installation, it is recommended
@@ -68,7 +68,7 @@ by running `./x.py --help` or reading the [rustc dev guide][rustcguidebuild].
68
68
4. Build and install:
69
69
70
70
` ` ` sh
71
- $ ./x.py build && ./x.py install
71
+ ./x.py build && ./x.py install
72
72
` ` `
73
73
74
74
When complete, ` ./x.py install` will place several programs into
@@ -106,15 +106,15 @@ build.
106
106
107
107
```sh
108
108
# Update package mirrors (may be needed if you have a fresh install of MSYS2)
109
- $ pacman -Sy pacman-mirrors
109
+ pacman -Sy pacman-mirrors
110
110
111
111
# Install build tools needed for Rust. If you' re building a 32-bit compiler,
112
112
# then replace "x86_64" below with "i686". If you've already got git, python,
113
113
# or CMake installed and in PATH you can remove them from this list. Note
114
114
# that it is important that you do **not** use the 'python2', 'cmake' and 'ninja'
115
115
# packages from the 'msys2' subsystem. The build has historically been known
116
116
# to fail with these packages.
117
- $ pacman -S git \
117
+ pacman -S git \
118
118
make \
119
119
diffutils \
120
120
tar \
@@ -127,7 +127,7 @@ build.
127
127
4. Navigate to Rust' s source code (or clone it), then build it:
128
128
129
129
```sh
130
- $ ./x.py build && ./x.py install
130
+ ./x.py build && ./x.py install
131
131
```
132
132
133
133
#### MSVC
@@ -145,7 +145,7 @@ With these dependencies installed, you can build the compiler in a `cmd.exe`
145
145
shell with:
146
146
147
147
```sh
148
- > python x.py build
148
+ python x.py build
149
149
```
150
150
151
151
Currently, building Rust only works with some known versions of Visual Studio. If
@@ -154,8 +154,8 @@ you may need to force rustbuild to use an older version. This can be done
154
154
by manually calling the appropriate vcvars file before running the bootstrap.
155
155
156
156
` ` ` batch
157
- > CALL " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
158
- > python x.py build
157
+ CALL " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
158
+ python x.py build
159
159
` ` `
160
160
161
161
# ### Specifying an ABI
@@ -181,8 +181,8 @@ While it's not the recommended build system, this project also provides a
181
181
configure script and makefile (the latter of which just invokes `x.py`).
182
182
183
183
```sh
184
- $ ./configure
185
- $ make && sudo make install
184
+ ./configure
185
+ make && sudo make install
186
186
```
187
187
188
188
When using the configure script, the generated `config.mk` file may override the
@@ -194,7 +194,7 @@ When using the configure script, the generated `config.mk` file may override the
194
194
If you’d like to build the documentation, it’s almost the same:
195
195
196
196
```sh
197
- $ ./x.py doc
197
+ ./x.py doc
198
198
```
199
199
200
200
The generated documentation will appear under `doc` in the `build` directory for
0 commit comments