Lower memory usage for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-11-08 14:19:52 +02:00
parent 0612936528
commit 574eef1ee9
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -89,7 +89,7 @@
Name: rust
Version: 1.73.0
Release: 2%{?dist}
Release: 2.0.riscv64%{?dist}
Summary: The Rust Programming Language
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016)
# ^ written as: (rust itself) and (bundled libraries)
@ -680,7 +680,7 @@ end}
%build
%{export_rust_env}
%ifarch %{arm} %{ix86}
%ifarch %{arm} %{ix86} riscv64
# full debuginfo is exhausting memory; just do libstd for now
# https://github.com/rust-lang/rust/issues/45854
%define enable_debuginfo --debuginfo-level=0 --debuginfo-level-std=2
@ -1062,6 +1062,9 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
%changelog
* Wed Nov 08 2023 David Abdurachmanov <davidlt@rivosinc.com> - 1.73.0-2.0.riscv64
- Lower memory usage on riscv64
* Thu Oct 26 2023 Josh Stone <jistone@redhat.com> - 1.73.0-2
- Use thin-LTO and PGO for rustc itself.