From 037ead5935e03879f1a3210a1674a815aaa78cfd Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Mon, 28 Aug 2023 10:03:47 -0300 Subject: [PATCH] Restrict link jobs on x86_64 Try to reduce the chances of memory exhaustion when linking mlir on x86_64. --- mlir.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mlir.spec b/mlir.spec index 7c65422..5909ce8 100644 --- a/mlir.spec +++ b/mlir.spec @@ -12,7 +12,7 @@ Name: mlir Version: %{mlir_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Multi-Level Intermediate Representation Overview License: Apache-2.0 WITH LLVM-exception @@ -103,7 +103,7 @@ MLIR development files. -DBUILD_SHARED_LIBS=OFF \ -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF \ -DMLIR_BUILD_MLIR_C_DYLIB=ON \ -%ifarch %ix86 ppc64le +%ifarch %ix86 ppc64le x86_64 -DLLVM_PARALLEL_LINK_JOBS=1 \ %endif %ifarch %ix86 @@ -200,6 +200,9 @@ export LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %{_libdir}/cmake/mlir %changelog +* Mon Aug 28 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-2 +- Restrict link jobs on x86_64 + * Fri Aug 25 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 - Update to LLVM 17.0.0 RC3