diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-12 09:14:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-12 09:14:13 +0100 |
| commit | 6fa92eaf03bb99e374b0c7c947a8d613b599ed73 (patch) | |
| tree | ee4c27c168e806db2f0113765ebdc451f0fb37cc | |
| parent | fcf81b8cc36932f732e2af6d1c739866e694f084 (diff) | |
| parent | af2247ce10bbe701714a19908ea0c6c957ae59e1 (diff) | |
| download | rust-6fa92eaf03bb99e374b0c7c947a8d613b599ed73.tar.gz rust-6fa92eaf03bb99e374b0c7c947a8d613b599ed73.zip | |
Rollup merge of #135375 - lolbinarycat:bootstrap-allow-stage0-rustdoc-js, r=jieyouxu
allow rustdoc-js tests to be run at stage0 this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 914260e38d1..2632719f7c9 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -1637,7 +1637,10 @@ impl Step for Compiletest { return; } - if builder.top_stage == 0 && env::var("COMPILETEST_FORCE_STAGE0").is_err() { + if builder.top_stage == 0 + && env::var("COMPILETEST_FORCE_STAGE0").is_err() + && self.mode != "js-doc-test" + { eprintln!("\ ERROR: `--stage 0` runs compiletest on the beta compiler, not your local changes, and will almost always cause tests to fail HELP: to test the compiler, use `--stage 1` instead |
