From 49fba6acf2c38de0bcaf0d0cf857ac0a551b6008 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 10 Jan 2022 15:41:41 -0500 Subject: [PATCH] Disable LTO build on s390x Fails with pcre limit error otherwise --- llvm.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm.spec b/llvm.spec index 30330b8..f73cfc8 100644 --- a/llvm.spec +++ b/llvm.spec @@ -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