diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-16 12:47:26 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-16 17:25:39 -0400 |
| commit | bd4e0af0b54afc91903c282740e25ee6135224c8 (patch) | |
| tree | e1fc78a011e49f5e36629f726d6ad2dea615babc /src/bootstrap | |
| parent | 7e24136996fd412ba2890952d5f0ddffb3cb7370 (diff) | |
| download | rust-bd4e0af0b54afc91903c282740e25ee6135224c8.tar.gz rust-bd4e0af0b54afc91903c282740e25ee6135224c8.zip | |
Build rustdoc for cross-compiled targets
This isn't an issue for most folks who use x.py dist, which will directly depend on this. But for x.py build, if we don't properly set target here rustdoc will not be built. Currently, there is not a default-on step for generating a rustc for a given target either, so we will fail to build a rustc as well.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/tool.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 99e33e3b006..d2346e40e51 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -471,7 +471,11 @@ impl Step for Rustdoc { fn make_run(run: RunConfig<'_>) { run.builder.ensure(Rustdoc { - compiler: run.builder.compiler(run.builder.top_stage, run.build_triple()), + // Note: this is somewhat unique in that we actually want a *target* + // compiler here, because rustdoc *is* a compiler. We won't be using + // this as the compiler to build with, but rather this is "what + // compiler are we producing"? + compiler: run.builder.compiler(run.builder.top_stage, run.target), }); } |
