diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-08-08 09:36:42 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-10-31 11:06:49 -0400 |
| commit | b123a660dd12a140dd88bcfafd061a78f00cb4f5 (patch) | |
| tree | aec12ccfeb1f2f540d845ab2ac5161112814035d /src/bootstrap | |
| parent | 4596f4f8b565bdd02d3b99d1ab12ff09146a93de (diff) | |
Enable RUSTC_BOOTSTRAP for a few steps
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/test.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 38fd2e933f8..cf837762aa0 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -986,6 +986,7 @@ impl Step for RustdocGUI { .arg("doc") .arg("--target-dir") .arg(&out_dir) + .env("RUSTC_BOOTSTRAP", "1") .env("RUSTDOC", builder.rustdoc(self.compiler)) .env("RUSTC", builder.rustc(self.compiler)) .current_dir(path); @@ -1725,6 +1726,8 @@ impl BookTest { let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook); let path = builder.src.join(&self.path); + // Books often have feature-gated example text. + rustbook_cmd.env("RUSTC_BOOTSTRAP", "1"); rustbook_cmd.env("PATH", new_path).arg("test").arg(path); builder.add_rust_test_threads(&mut rustbook_cmd); builder.info(&format!("Testing rustbook {}", self.path.display())); |
