about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-03-07 02:50:06 -0500
committerTrevor Gross <tmgross@umich.edu>2024-03-07 02:50:06 -0500
commit9d9e78e94264668d436981a38206f44de13a9c69 (patch)
tree3c2918fee078315d02b9e762a5118fa9339e2167
parent7d3702e472b99be0f5de6608dd87af1df8f99428 (diff)
downloadrust-9d9e78e94264668d436981a38206f44de13a9c69.tar.gz
rust-9d9e78e94264668d436981a38206f44de13a9c69.zip
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;