Skip to content

Commit d72afd8

Browse files
committed
linux-cachyos-rc: Conditionally add clang-llvm to headers dependencies
Signed-off-by: Eric Naim <[email protected]>
1 parent 95b11d0 commit d72afd8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

linux-cachyos-rc/.SRCINFO

+3
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ pkgname = linux-cachyos-rc-headers
5353
pkgdesc = Headers and scripts for building modules for the Linux BORE + LTO + Cachy Sauce Kernel by CachyOS with other patches and improvements - Release Candidate kernel
5454
depends = pahole
5555
depends = linux-cachyos-rc
56+
depends = clang
57+
depends = llvm
58+
depends = lld

linux-cachyos-rc/PKGBUILD

+4
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,10 @@ _package-headers() {
640640
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
641641
depends=('pahole' "${pkgbase}")
642642

643+
if _is_lto_kernel; then
644+
depends+=(clang llvm lld)
645+
fi
646+
643647
cd "${_srcname}"
644648
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
645649

0 commit comments

Comments
 (0)