From 542735e3c444191709abea4b36632c9908a56a70 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 20 Jul 2024 15:40:00 +0200 Subject: [PATCH] Decrease debuginfo verbosity on RHEL 8 To see whether this fixes the OOMs. This also drops the change on i686 for other OSs, to see whether that works or not. On s390x this was already not effective due to a mismatch with the condition in the cmake invocation. --- build.spec.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.spec.inc b/build.spec.inc index 13cc33b..784878c 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -1,5 +1,5 @@ # TODO(kkleine): In clang we had this %ifarch s390 s390x aarch64 %ix86 ppc64le -%ifarch s390 s390x %ix86 +%if 0%{?rhel} == 8 # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif @@ -113,7 +113,7 @@ cd llvm -DLLVM_PARALLEL_LINK_JOBS=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -%ifarch s390 %ix86 +%if 0%{?rhel} == 8 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ %endif