Skip to content

Commit f3f15a9

Browse files
onur-ozkantshepang
authored andcommitted
update old bootstrap docs
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 4af29d1 commit f3f15a9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/building/new-target.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ unexpected because stage0 doesn't know about the new target specification and
8686
we pass `--check-cfg` in order to tell it to check.
8787

8888
To fix the errors you will need to manually add the unexpected value to the
89-
`EXTRA_CHECK_CFGS` list in `src/bootstrap/lib.rs`. Here is an example for
89+
`EXTRA_CHECK_CFGS` list in `src/bootstrap/src/lib.rs`. Here is an example for
9090
adding `NEW_TARGET_OS` as `target_os`:
9191
```diff
9292
- (Some(Mode::Std), "target_os", Some(&["watchos"])),

src/sanitizers.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ implementation:
6464
constructed by cargo `-Z build-std` or xargo.
6565

6666
[compiler-rt]: https://github.com/llvm/llvm-project/tree/main/compiler-rt
67-
[sanitizer-build]: https://github.com/rust-lang/rust/blob/1.55.0/src/bootstrap/native.rs#L700-L765
68-
[sanitizer-targets]: https://github.com/rust-lang/rust/blob/1.55.0/src/bootstrap/native.rs#L806-L820
69-
[sanitizer-copy]: https://github.com/rust-lang/rust/blob/1.55.0/src/bootstrap/compile.rs#L376-L407
67+
[sanitizer-build]: https://github.com/rust-lang/rust/blob/1ead4761e9e2f056385768614c23ffa7acb6a19e/src/bootstrap/src/core/build_steps/llvm.rs#L958-L1031
68+
[sanitizer-targets]: https://github.com/rust-lang/rust/blob/1ead4761e9e2f056385768614c23ffa7acb6a19e/src/bootstrap/src/core/build_steps/llvm.rs#L1073-L1111
69+
[sanitizer-copy]: https://github.com/rust-lang/rust/blob/1ead4761e9e2f056385768614c23ffa7acb6a19e/src/bootstrap/src/core/build_steps/compile.rs#L637-L676
7070
[sanitizer-attribute]: https://github.com/rust-lang/rust/blob/1.55.0/compiler/rustc_codegen_llvm/src/attributes.rs#L42-L58
7171
[inline-mir]: https://github.com/rust-lang/rust/blob/1.55.0/compiler/rustc_mir/src/transform/inline.rs#L314-L316
7272
[inline-llvm]: https://github.com/rust-lang/llvm-project/blob/9330ec5a4c1df5fc1fa62f993ed6a04da68cb040/llvm/include/llvm/IR/Attributes.td#L225-L241

src/tests/running.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ libraries to the emulator, and running the tests within the emulator, and
307307
reading the results. The Docker image is set up to launch
308308
`remote-test-server` and the build tools use `remote-test-client` to
309309
communicate with the server to coordinate running tests (see
310-
[src/bootstrap/test.rs]).
310+
[src/bootstrap/src/core/build_steps/test.rs]).
311311

312312
> TODO:
313313
> Is there any support for using an iOS emulator?
@@ -318,7 +318,7 @@ communicate with the server to coordinate running tests (see
318318
[QEMU]: https://www.qemu.org/
319319
[remote-test-client]: https://github.com/rust-lang/rust/tree/master/src/tools/remote-test-client
320320
[remote-test-server]: https://github.com/rust-lang/rust/tree/master/src/tools/remote-test-server
321-
[src/bootstrap/test.rs]: https://github.com/rust-lang/rust/tree/master/src/bootstrap/test.rs
321+
[src/bootstrap/src/core/build_steps/test.rs]: https://github.com/rust-lang/rust/blob/master/src/bootstrap/src/core/build_steps/test.rs
322322

323323
## Running rustc_codegen_gcc tests
324324

src/tests/suggest-tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ in scope, we are looking to expand this (contributions welcome!).
1111

1212
The tool is defined in a separate crate ([`src/tools/suggest-tests`](https://github.com/rust-lang/rust/blob/master/src/tools/suggest-tests))
1313
which outputs suggestions which are parsed by a shim in bootstrap
14-
([`src/bootstrap/suggest.rs`](https://github.com/rust-lang/rust/blob/master/src/bootstrap/suggest.rs)).
14+
([`src/bootstrap/src/core/build_steps/suggest.rs`](https://github.com/rust-lang/rust/blob/master/src/bootstrap/src/core/build_steps/suggest.rs)).
1515
The only notable thing the bootstrap shim does is (when invoked with the
1616
`--run` flag) use bootstrap's internal mechanisms to create a new `Builder` and
1717
uses it to invoke the suggested commands. The `suggest-tests` crate is where the

0 commit comments

Comments
 (0)