Enable LTO builds on s390x again

The PCRE limit problem has been fixed in redhat-rpm-config in
25ea080503?branch=rawhide
This commit is contained in:
Timm Bäder 2022-12-05 17:07:40 +01:00
parent 2fa672b23f
commit 1d9fedd416
1 changed files with 1 additions and 7 deletions

View File

@ -19,6 +19,7 @@
%global patch_ver 6
%global llvm_srcdir llvm-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:rc%{rc_ver}}.src
%global cmake_srcdir cmake-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:rc%{rc_ver}}.src
%global _lto_cflags -flto=thin
%if %{with compat_build}
%global pkg_name llvm%{maj_ver}
@ -219,13 +220,6 @@ mv %{cmake_srcdir} cmake
%build
%ifarch s390 s390x
# Fails with "exceeded PCRE's backtracking limit"
%global _lto_cflags %nil
%else
%global _lto_cflags -flto=thin
%endif
%ifarch s390 s390x %{arm} %ix86
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')