From 225c9e3c446f04d7b3cb3922820f4021da5df52d Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Fri, 20 Jan 2023 11:17:52 +0000 Subject: [PATCH] Disable LTO to speed up builds --- llvm.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm.spec b/llvm.spec index 6ea9421..7ddd7f8 100644 --- a/llvm.spec +++ b/llvm.spec @@ -253,6 +253,11 @@ mv %{third_party_srcdir} third-party %build +# Disable LTO to speed up builds +%if %{with snapshot_build} +%global _lto_cflags %nil +%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 /')