diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-16 10:29:31 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-16 17:25:39 -0400 |
| commit | 7e24136996fd412ba2890952d5f0ddffb3cb7370 (patch) | |
| tree | b862f80b15159bb20f611a153ef64de7abde3ca9 /src/bootstrap | |
| parent | ff806b87167a9b4f38b9e3d2f6e9c4e621df6a77 (diff) | |
| download | rust-7e24136996fd412ba2890952d5f0ddffb3cb7370.tar.gz rust-7e24136996fd412ba2890952d5f0ddffb3cb7370.zip | |
Pass --target to lint docs
Otherwise, we may not have a standard library built for the native "host" target of the rustc being run.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/doc.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index f90e76a4f4e..cf9211bc7ea 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -752,6 +752,7 @@ impl Step for RustcBook { let out_listing = out_base.join("src/lints"); builder.cp_r(&builder.src.join("src/doc/rustc"), &out_base); builder.info(&format!("Generating lint docs ({})", self.target)); + let rustc = builder.rustc(self.compiler); // The tool runs `rustc` for extracting output examples, so it needs a // functional sysroot. @@ -762,7 +763,8 @@ impl Step for RustcBook { cmd.arg("--out"); cmd.arg(&out_listing); cmd.arg("--rustc"); - cmd.arg(rustc); + cmd.arg(&rustc); + cmd.arg("--rustc-target").arg(&self.target.rustc_target_arg()); if builder.config.verbose() { cmd.arg("--verbose"); } |
