run-make: add tip about quick-compile with stage0 rustc

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-06-10 11:37:14 +00:00 committed by Jakub Beránek
parent 8e290bc634
commit cf49c91585
1 changed files with 12 additions and 0 deletions

View File

@ -404,6 +404,18 @@ Two `run-make` tests are ported over to Rust recipes as examples:
- <https://github.com/rust-lang/rust/tree/master/tests/run-make/CURRENT_RUSTC_VERSION>
- <https://github.com/rust-lang/rust/tree/master/tests/run-make/a-b-a-linker-guard>
#### Quickly check if `rmake.rs` tests can be compiled
You can quickly check if `rmake.rs` tests can be compiled without having to
build stage1 rustc by forcing `rmake.rs` to be compiled with the stage0
compiler:
```bash
$ COMPILETEST_FORCE_STAGE0=1 x test --stage 0 tests/run-make/<test-name>
```
Of course, some tests will not successfully *run* in this way.
#### Using Makefiles (legacy)
> NOTE: