@@ -36,7 +36,6 @@ Read ["Installing Rust"] from [The Book].
36
36
37
37
``` sh
38
38
$ ./x.py build && sudo ./x.py dist --install
39
- $ make && sudo make install
40
39
```
41
40
42
41
> *** Note:*** Install locations can be adjusted by copying the config file
@@ -116,9 +115,16 @@ With these dependencies installed, you can build the compiler with:
116
115
If you're running inside of an msys shell, however, you can run:
117
116
118
117
``` sh
119
- $ ./x.py build --build=x86_64-pc-windows-msvc && ./x.py dist --install
118
+ $ ./x.py build --build=x86_64-pc-windows-msvc
119
+ $ ./x.py dist --build=x86_64-pc-windows-msvc --install
120
120
```
121
121
122
+ > ***Note:*** The build option can also be configured by copying
123
+ > the config file and adjusting the `build` option under `[build]`.
124
+ > ```sh
125
+ > $ cp ./src/bootstrap/config.toml.example ./config.toml
126
+ > ```
127
+
122
128
Currently building Rust only works with some known versions of Visual Studio. If
123
129
you have a more recent version installed the build system doesn't understand
124
130
then you may need to force rustbuild to use an older version. This can be done
@@ -129,6 +135,20 @@ CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.
129
135
python x.py build
130
136
```
131
137
138
+ ### Configure and Make
139
+
140
+ While it's not the recommended build system, this project also provides a
141
+ configure script and makefile (the latter of which just invokes ` x.py ` ).
142
+
143
+ ``` sh
144
+ $ ./configure
145
+ $ make && sudo make install
146
+ ```
147
+
148
+ When using the configure script, the generated config.mk` file may override the
149
+ ` config.toml ` file. To go back to the ` config.toml ` file, delete the generated
150
+ ` config.mk ` file.
151
+
132
152
## Building Documentation
133
153
134
154
If you’d like to build the documentation, it’s almost the same:
0 commit comments