Skip to content

Commit 7290944

Browse files
committed
save
Signed-off-by: ozkanonur <[email protected]>
1 parent 00c0d7e commit 7290944

File tree

2 files changed

+36
-25
lines changed

2 files changed

+36
-25
lines changed

src/building/bootstrapping.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -411,17 +411,17 @@ you can tell the bootstrap shim to print all env variables by adding `-vvv` to y
411411

412412
This is an incomplete reference for the outputs generated by bootstrap:
413413

414-
| Stage 0 Action | Output |
415-
|-----------------------------------------------------------|----------------------------------------------|
416-
| `beta` extracted | `build/HOST/stage0` |
417-
| `stage0` builds `bootstrap` | `build/bootstrap` |
418-
| `stage0` builds `test`/`std` | `build/HOST/stage0-std/TARGET` |
419-
| copy `stage0-std` (HOST only) | `build/HOST/stage0-sysroot/lib/rustlib/HOST` |
420-
| `stage0` builds `rustc` with `stage0-sysroot` | `build/HOST/stage0-rustc/HOST` |
421-
| copy `stage0-rustc` (except executable) | `build/HOST/stage0-sysroot/lib/rustlib/HOST` |
422-
| build `llvm` | `build/HOST/llvm` |
423-
| `stage0` builds `codegen` with `stage0-sysroot` | `build/HOST/stage0-codegen/HOST` |
424-
| `stage0` builds `rustdoc`, `clippy`, `miri`, with `stage0-sysroot` | `build/HOST/stage0-tools/HOST` |
414+
| Stage 0 Action | Output |
415+
| ------------------------------------------------------------------ | -------------------------------------------- |
416+
| `beta` extracted | `build/HOST/stage0` |
417+
| `stage0` builds `bootstrap` | `build/bootstrap` |
418+
| `stage0` builds `test`/`std` | `build/HOST/stage0-std/TARGET` |
419+
| copy `stage0-std` (HOST only) | `build/HOST/stage0-sysroot/lib/rustlib/HOST` |
420+
| `stage0` builds `rustc` with `stage0-sysroot` | `build/HOST/stage0-rustc/HOST` |
421+
| copy `stage0-rustc` (except executable) | `build/HOST/stage0-sysroot/lib/rustlib/HOST` |
422+
| build `llvm` | `build/HOST/llvm` |
423+
| `stage0` builds `codegen` with `stage0-sysroot` | `build/HOST/stage0-codegen/HOST` |
424+
| `stage0` builds `rustdoc`, `clippy`, `miri`, with `stage0-sysroot` | `build/HOST/stage0-tools/HOST` |
425425

426426
`--stage=0` stops here.
427427

@@ -457,15 +457,15 @@ When you execute `x.py build --dry-run` command, the build output will be someth
457457
like the following:
458458

459459
```text
460-
Building stage0 library artifacts (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu)
461-
Copying stage0 library from stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu / aarch64-unknown-linux-gnu)
462-
Building stage0 compiler artifacts (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu)
463-
Copying stage0 rustc from stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu / aarch64-unknown-linux-gnu)
464-
Assembling stage1 compiler (aarch64-unknown-linux-gnu)
465-
Building stage1 library artifacts (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu)
466-
Copying stage1 library from stage1 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu / aarch64-unknown-linux-gnu)
467-
Building stage1 tool rust-analyzer-proc-macro-srv (aarch64-unknown-linux-gnu)
468-
Building rustdoc for stage1 (aarch64-unknown-linux-gnu)
460+
Building stage0 library artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
461+
Copying stage0 library from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
462+
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
463+
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
464+
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
465+
Building stage1 library artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
466+
Copying stage1 library from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
467+
Building stage1 tool rust-analyzer-proc-macro-srv (x86_64-unknown-linux-gnu)
468+
Building rustdoc for stage1 (x86_64-unknown-linux-gnu)
469469
```
470470

471471
#### Building stage0 {std,test,compiler} artifacts

src/building/suggested.md

+16-5
Original file line numberDiff line numberDiff line change
@@ -177,21 +177,32 @@ You can also use `--keep-stage 1` when running tests. Something like this:
177177

178178
## Incremental builds
179179

180-
You can configure rustbuild to use incremental compilation with the
181-
`--incremental` flag:
180+
Incremental compilation is enabled by default in almost all of the config profiles
181+
under the `src/bootstrap/defaults`.
182+
183+
In case if it's not enabled, you can configure rustbuild to use incremental
184+
compilation with the `--incremental` flag:
182185

183186
```sh
184187
$ ./x.py build --incremental
185188
```
186189

187-
The `--incremental` flag will store incremental compilation artifacts
190+
If you want to enable it once for all, you can apply the following configuration
191+
in your `config.toml`:
192+
193+
```toml
194+
[rust]
195+
incremental=true
196+
```
197+
198+
Incremental compilation will store compilation artifacts
188199
in `build/<host>/stage0-incremental`. Note that we only use incremental
189200
compilation for the stage0 -> stage1 compilation -- this is because
190201
the stage1 compiler is changing, and we don't try to cache and reuse
191202
incremental artifacts across different versions of the compiler.
192203

193-
You can always drop the `--incremental` to build as normal (note that
194-
you will still be using the downloaded beta as your bootstrap).
204+
Note that if incremental compilation is not enabled, you will
205+
still be using the downloaded beta as your bootstrap.
195206

196207
## Fine-tuning optimizations
197208

0 commit comments

Comments
 (0)