about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-03-07 15:07:10 +0100
committerGitHub <noreply@github.com>2024-03-07 15:07:10 +0100
commitce9a6adba90a80b1642d55931006a52bde4e0c3f (patch)
tree8269d0a36196833682e5e8655f05358e005363d5
parentd03d9a4e9bea1d57d495449062d236aedda0f99d (diff)
parent9d9e78e94264668d436981a38206f44de13a9c69 (diff)
downloadrust-ce9a6adba90a80b1642d55931006a52bde4e0c3f.tar.gz
rust-ce9a6adba90a80b1642d55931006a52bde4e0c3f.zip
Rollup merge of #122129 - tgross35:rustcdocs-host-only, r=onur-ozkan
Set `RustcDocs` to only run on host

`./x dist` currently crashes when cross compiling. Add the fix described by `@catamorphism` in https://github.com/rust-lang/rust/issues/110071.

Fixes #110071
-rw-r--r--src/bootstrap/src/core/build_steps/dist.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs
index 6c7cc3bf6a7..c8c32fb8699 100644
--- a/src/bootstrap/src/core/build_steps/dist.rs
+++ b/src/bootstrap/src/core/build_steps/dist.rs
@@ -129,6 +129,7 @@ pub struct RustcDocs {
 impl Step for RustcDocs {
     type Output = Option<GeneratedTarball>;
     const DEFAULT: bool = true;
+    const ONLY_HOSTS: bool = true;
 
     fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
         let builder = run.builder;