mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-12-01 03:32:55 +00:00
Disable LTO to speed up builds
This commit is contained in:
parent
696e9bc779
commit
225c9e3c44
1 changed files with 5 additions and 0 deletions
|
@ -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 /')
|
||||
|
|
Loading…
Reference in a new issue