LTO-kernel: enable Clang Polly

This commit is contained in:
Anders Rytter Hansen 2025-06-09 13:34:44 +02:00
commit 5e3b2b0552

View file

@ -73,7 +73,7 @@
Name: kernel-cachyos-lts%{?_lto_args:-lto}-skylake
Summary: Linux BORE %{?_lto_args:+ LTO }Cachy Sauce Kernel by CachyOS with other patches and improvements.
Version: %{_basekver}.%{_stablekver}
Release: cachylts1%{?_lto_args:.lto}.skylake%{?dist}
Release: cachylts4%{?_lto_args:.lto}.skylake%{?dist}
License: GPL-2.0-only
URL: https://cachyos.org
@ -107,6 +107,7 @@ BuildRequires: python-srpm-macros
BuildRequires: clang
BuildRequires: lld
BuildRequires: llvm
BuildRequires: polly
%endif
%if %{_build_nv}
@ -133,6 +134,7 @@ Patch1: %{_patch_src}/sched/0001-bore-cachy.patch
%if %{_build_lto}
Patch2: %{_patch_src}/misc/dkms-clang.patch
Patch3: %{_patch_src}/misc/0001-clang-polly.patch
%endif
%if %{_build_nv}
@ -185,6 +187,7 @@ Patch13: %{_patch_src}/misc/nvidia/565/0005-nvkms-Sanitize-trim-ELD-produ
%if %{_build_lto}
scripts/config -e LTO_CLANG_THIN
scripts/config -e POLLY_CLANG
%endif
%if %{_build_minimal}