From d81aa939f27de1e798bb45851f4651318230b92d Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Fri, 20 Dec 2024 16:44:03 +0800 Subject: [PATCH] fix build error for loongarch64 (cherry picked from commit d7acd792b10cfaec81f2f3638ec322902568223c) --- rust.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rust.spec b/rust.spec index 9740b50..af7ad1f 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 -- Gitee