Skip to content

Commit

Permalink
run-make: add tip about quick-compile with stage0 rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu authored and Kobzol committed Jun 10, 2024
1 parent 92f40da commit cb69788
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests/compiletest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cb69788

Please sign in to comment.