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.
This commit is contained in:
Nikita Popov 2024-07-20 15:40:00 +02:00 committed by Timm Bäder
parent 1612a9fa8f
commit 542735e3c4

View file

@ -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