Build with LTO

Resolves: rhbz#2188418
This commit is contained in:
Nikita Popov 2023-05-05 15:03:50 +02:00
parent d2dbf70a14
commit d4826e5aab
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: The LLVM Linker
License: Apache-2.0 WITH LLVM-exception OR NCSA
@ -91,9 +91,6 @@ mv %{cmake_srcdir} cmake
%build
# Disable lto since it causes the COFF/libpath.test lit test to crash.
%global _lto_cflags %{nil}
%cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@ -161,6 +158,9 @@ fi
%changelog
* Fri May 05 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-2
- Build with LTO
* Wed Apr 19 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-1
- Update to LLVM 16.0.1