Disable LTO build on s390x

Fails with pcre limit error otherwise
This commit is contained in:
Nikita Popov 2022-01-10 15:41:41 -05:00
parent 236248c006
commit 49fba6acf2
1 changed files with 6 additions and 0 deletions

View File

@ -207,7 +207,13 @@ LLVM's modified googletest sources.
utils/update_cc_test_checks.py
%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