1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/lang/rust/files/patch-src_bootstrap_install.rs
Tobias Kortkamp 20d8683141 lang/rust: Fix DOCS build, unbreak RUST_BACKTRACE
- Fix DOCS build by disabling deny-warnings (rustc equivalent to
  -Werror).  Let's not fail the entire build just because a handful
  of docs fail to build due to -D broken-intra-doc-links [0]
- Only install the host target docs.  We otherwise waste time with
  a rust-docs install-uninstall-install cycle for each additional
  target during stage.
- Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and
  have useful stack traces with actual content again [1]
- While here also strip binaries under libexec/ and ack reading of
  src/bootstrap/CHANGELOG.md (changelog-seen=2)

[0] https://github.com/rust-lang/rust/issues/76526

PR:		253557 [1]
Submitted by:	jbeich [1]
2021-03-23 06:39:47 +00:00

18 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);
};