1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/lang/rust/files/patch-src_bootstrap_install.rs
Tobias Kortkamp 124261fa7d
lang/rust: Update to 1.56.0
- Drop codegen-units=1 again as it seems to negatively impact build
  time for some people [1]

Changes:	https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html
PR:		256099 [1]
PR:		259251
Reviewed by:	jbeich, mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D32553
2021-10-25 10:46:49 +02:00

17 lines
660 B
Rust

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