mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
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:
parent
1612a9fa8f
commit
542735e3c4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue