Restore reduced debuginfo on i686

At least on f40 this resulted in a segfault during gdb-add-index.
This commit is contained in:
Nikita Popov 2024-07-21 15:03:26 +02:00 committed by Timm Bäder
parent 542735e3c4
commit 16b62060ba

View file

@ -1,6 +1,14 @@
# 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
# Decrease debuginfo verbosity to reduce memory consumption during final library linking.
%global reduce_debuginfo 0
%ifarch %ix86
%global reduce_debuginfo 1
%endif
%if 0%{?rhel} == 8 %if 0%{?rhel} == 8
# Decrease debuginfo verbosity to reduce memory consumption during final library linking %global reduce_debuginfo 1
%endif
%if %reduce_debuginfo == 1
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif %endif
@ -113,7 +121,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 \
%if 0%{?rhel} == 8 %if %reduce_debuginfo == 1
-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