Skip to content

Commit

Permalink
linux-cachyos-rc: Conditionally add clang-llvm to headers dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Naim <[email protected]>
  • Loading branch information
1Naim authored and ptr1337 committed Dec 6, 2024
1 parent a6a3f3a commit 1799c8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linux-cachyos-rc/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ pkgname = linux-cachyos-rc-headers
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
depends = pahole
depends = linux-cachyos-rc
depends = clang
depends = llvm
depends = lld
4 changes: 4 additions & 0 deletions linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ _package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' "${pkgbase}")

if _is_lto_kernel; then
depends+=(clang llvm lld)
fi

cd "${_srcname}"
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"

Expand Down

0 comments on commit 1799c8b

Please sign in to comment.