mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-25 01:35:17 +00:00
Disable LTO for anything older than Fedora 34
This commit is contained in:
parent
baf25538e5
commit
6256376e3f
1 changed files with 5 additions and 0 deletions
|
@ -246,6 +246,11 @@ LLVM's modified googletest sources.
|
||||||
%global _lto_cflags -flto=thin
|
%global _lto_cflags -flto=thin
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Disable LTO when building snapshots for Fedora 34 or lower
|
||||||
|
%if 0%{?fedora} <= 34
|
||||||
|
%global _lto_cflags %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
%ifarch s390 s390x %{arm} %ix86
|
%ifarch s390 s390x %{arm} %ix86
|
||||||
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
||||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||||
|
|
Loading…
Reference in a new issue