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
This commit is contained in:
Trevor Gross 2024-03-07 02:50:06 -05:00
parent 7d3702e472
commit 9d9e78e942

View File

@ -129,6 +129,7 @@ pub struct RustcDocs {
impl Step for RustcDocs { impl Step for RustcDocs {
type Output = Option<GeneratedTarball>; type Output = Option<GeneratedTarball>;
const DEFAULT: bool = true; const DEFAULT: bool = true;
const ONLY_HOSTS: bool = true;
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
let builder = run.builder; let builder = run.builder;