Changeset View
Changeset View
Standalone View
Standalone View
lang/rust/files/patch-src_bootstrap_install.rs
Only install docs for the host target | Only install docs for the host target | ||||
It otherwise wastes significant time (there are a lot of individual | It otherwise wastes significant time (there are a lot of individual | ||||
files) and stages host docs, wasm docs, which unstages the host | files) and stages host docs, wasm docs, which unstages the host | ||||
docs first. | docs first. | ||||
--- src/bootstrap/install.rs.orig 2021-03-22 17:05:25 UTC | --- src/bootstrap/install.rs.orig 2021-03-22 17:05:25 UTC | ||||
+++ src/bootstrap/install.rs | +++ src/bootstrap/install.rs | ||||
@@ -138,7 +138,7 @@ macro_rules! install { | @@ -133,7 +133,7 @@ macro_rules! install { | ||||
} | } | ||||
install!((self, builder, _config), | install!((self, builder, _config), | ||||
- Docs, "src/doc", _config.docs, only_hosts: false, { | - Docs, "src/doc", _config.docs, only_hosts: false, { | ||||
+ Docs, "src/doc", _config.docs, only_hosts: true, { | + Docs, "src/doc", _config.docs, only_hosts: true, { | ||||
if let Some(tarball) = builder.ensure(dist::Docs { host: self.target }) { | let tarball = builder.ensure(dist::Docs { host: self.target }).expect("missing docs"); | ||||
install_sh(builder, "docs", self.compiler.stage, Some(self.target), &tarball); | install_sh(builder, "docs", self.compiler.stage, Some(self.target), &tarball); | ||||
} else { | }; |