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 Nikita Popov
parent ad51683670
commit 2660590e85

View file

@ -1,5 +1,5 @@
# TODO(kkleine): In clang we had this %ifarch s390 s390x aarch64 %ix86 ppc64le # 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 # Decrease debuginfo verbosity to reduce memory consumption during final library linking
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif %endif
@ -113,7 +113,7 @@ cd llvm
-DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_PARALLEL_LINK_JOBS=1 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH:BOOL=ON \ -DCMAKE_SKIP_RPATH:BOOL=ON \
%ifarch s390 %ix86 %if 0%{?rhel} == 8
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
%endif %endif