ChangeLog: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1460-2020-08-27 Announce: https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html ok landry@
21 lines
767 B
Plaintext
21 lines
767 B
Plaintext
$OpenBSD: patch-src_bootstrap_bin_rustc_rs,v 1.15 2020/08/27 17:24:57 semarie Exp $
|
|
try to reduce memory usage on aarch64:
|
|
- reduce memory use by retaining fewer names within compilation artifacts
|
|
Index: src/bootstrap/bin/rustc.rs
|
|
--- src/bootstrap/bin/rustc.rs.orig
|
|
+++ src/bootstrap/bin/rustc.rs
|
|
@@ -105,6 +105,13 @@ fn main() {
|
|
{
|
|
cmd.arg("-C").arg("panic=abort");
|
|
}
|
|
+
|
|
+ if target.unwrap().contains("aarch64-unknown-openbsd")
|
|
+ && crate_name == Some("rustc")
|
|
+ {
|
|
+ cmd.arg("-Z").arg("fewer-names");
|
|
+ }
|
|
+
|
|
} else {
|
|
// FIXME(rust-lang/cargo#5754) we shouldn't be using special env vars
|
|
// here, but rather Cargo should know what flags to pass rustc itself.
|