From 7e6ef4a275b3f189ecf695429177baf771336370 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sep 08 2022 09:22:59 +0000 Subject: Re-enable LTO The referenced error no longer occurs. --- diff --git a/polly.spec b/polly.spec index 6b34b62..b830993 100644 --- a/polly.spec +++ b/polly.spec @@ -5,7 +5,7 @@ Name: polly Version: %{polly_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: LLVM Framework for High-Level Loop and Data-Locality Optimizations License: NCSA @@ -54,15 +54,6 @@ Documentation for the Polly optimizer. %build -# LTO builds fail: -# ../lib/External/pet/include/pet.h:20:1: error: function 'pet_options_args' redeclared as variable -# 20 | ISL_ARG_DECL(pet_options, struct pet_options, pet_options_args) -# | ^ -#../lib/External/ppcg/external.c:107:6: note: previously declared here -# 107 | void pet_options_args() { -# | ^ -%global _lto_cflags %{nil} - %cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ @@ -107,6 +98,9 @@ cp -r %{_vpath_builddir}/docs/html/* %{buildroot}%{_pkgdocdir}/html/ %doc %{_pkgdocdir}/html %changelog +* Thu Sep 08 2022 Nikita Popov - 15.0.0-2 +- Re-enable LTO + * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0