Skip to content

Commit cb69788

Browse files
jieyouxuKobzol
authored andcommitted
run-make: add tip about quick-compile with stage0 rustc
1 parent 92f40da commit cb69788

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/tests/compiletest.md

+12
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,18 @@ Two `run-make` tests are ported over to Rust recipes as examples:
404404
- <https://github.com/rust-lang/rust/tree/master/tests/run-make/CURRENT_RUSTC_VERSION>
405405
- <https://github.com/rust-lang/rust/tree/master/tests/run-make/a-b-a-linker-guard>
406406

407+
#### Quickly check if `rmake.rs` tests can be compiled
408+
409+
You can quickly check if `rmake.rs` tests can be compiled without having to
410+
build stage1 rustc by forcing `rmake.rs` to be compiled with the stage0
411+
compiler:
412+
413+
```bash
414+
$ COMPILETEST_FORCE_STAGE0=1 x test --stage 0 tests/run-make/<test-name>
415+
```
416+
417+
Of course, some tests will not successfully *run* in this way.
418+
407419
#### Using Makefiles (legacy)
408420

409421
> NOTE:

0 commit comments

Comments
 (0)