From 0b53e0d1986bab09af4bffa18d93f31e4073ac3c Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Mon, 14 Nov 2022 15:47:31 -0300 Subject: [PATCH] Enable link-time optimization LTO does not cause COFF/libpath.test to fail anymore and can be enabled now. --- lld.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lld.spec b/lld.spec index b9fab3d..070fdef 100644 --- a/lld.spec +++ b/lld.spec @@ -22,7 +22,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: NCSA @@ -100,9 +100,6 @@ sed 's/add_subdirectory(tools\/lld)//' -i CMakeLists.txt %build -# Disable lto since it causes the COFF/libpath.test lit test to crash. -%global _lto_cflags %{nil} - %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -179,6 +176,9 @@ fi %{install_libdir}/liblld*.so.* %changelog +* Mon Nov 14 2022 Tulio Magno Quites Machado Filho - 15.0.4-2 +- Enable LTO. + * Mon Nov 07 2022 Nikita Popov - 15.0.4-1 - Update to LLVM 15.0.4