diff --git a/rust.spec b/rust.spec index 9740b50f4949c2ac36ffaf5599d20646f1c701e1..af7ad1f5e6cc0d6a9ca1136f05e08d40bca30def 100644 --- a/rust.spec +++ b/rust.spec @@ -22,7 +22,7 @@ Name: rust Version: 1.82.0 -Release: 6 +Release: 7 Summary: The Rust Programming Language License: Apache-2.0 OR MIT URL: https://www.rust-lang.org @@ -376,7 +376,11 @@ test -r "%{profiler}" --enable-verbose-tests \ %{?codegen_units_std} \ --release-channel=stable -%{python} ./x.py build -j "$ncpus" --stage 2 +%ifarch loongarch64 + %{python} ./x.py build -j "$((($ncpus + 3) / 4))" --stage 2 +%else + %{python} ./x.py build -j "$ncpus" --stage 2 +%endif %{python} ./x.py doc --stage 2 %install @@ -545,6 +549,9 @@ export %{rust_env} %{_mandir}/man1/cargo*.1* %changelog +* Fri Dec 20 2024 Wenlong Zhang - 1.82.0-7 +- fix the error out of memory for loongarch64 + * Sun Dec 08 2024 misaka00251 - 1.82.0-6 - Fix rpm macros