diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD index f88ff1a4..0c0cbe8d 100644 --- a/linux-cachyos-bmq/PKGBUILD +++ b/linux-cachyos-bmq/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD index 505be1cf..4594a299 100644 --- a/linux-cachyos-bore/PKGBUILD +++ b/linux-cachyos-bore/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD index e1df9a01..9ffd0d39 100644 --- a/linux-cachyos-deckify/PKGBUILD +++ b/linux-cachyos-deckify/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -203,6 +193,18 @@ source=( "${_patchsource}/misc/0001-acpi-call.patch" "${_patchsource}/misc/0001-handheld.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD index 2d016eb3..2ba6e9bb 100644 --- a/linux-cachyos-eevdf/PKGBUILD +++ b/linux-cachyos-eevdf/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD index dfbfbf2c..4214c654 100644 --- a/linux-cachyos-hardened/PKGBUILD +++ b/linux-cachyos-hardened/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILD index 7317ce06..d6a6c27f 100644 --- a/linux-cachyos-lts/PKGBUILD +++ b/linux-cachyos-lts/PKGBUILD @@ -202,16 +202,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -223,6 +213,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD index e35929a0..7df85920 100644 --- a/linux-cachyos-rc/PKGBUILD +++ b/linux-cachyos-rc/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD index 86a5d94a..76e7eb5e 100644 --- a/linux-cachyos-rt-bore/PKGBUILD +++ b/linux-cachyos-rt-bore/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILD index fd4a42c0..76a80ba3 100644 --- a/linux-cachyos-sched-ext/PKGBUILD +++ b/linux-cachyos-sched-ext/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD index 6adb9737..b045c2b9 100644 --- a/linux-cachyos-server/PKGBUILD +++ b/linux-cachyos-server/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD index 8cb546bf..4bb9d400 100644 --- a/linux-cachyos/PKGBUILD +++ b/linux-cachyos/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# LLVM makedepends -if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then - makedepends+=(clang llvm lld) - BUILD_FLAGS=( - CC=clang - LD=ld.lld - LLVM=1 - LLVM_IAS=1 - ) -fi _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _nv_ver=560.35.03 @@ -200,6 +190,18 @@ source=( "auto-cpu-optimization.sh" "${_patchsource}/all/0001-cachyos-base-all.patch") +# LLVM makedepends +if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then + makedepends+=(clang llvm lld) + source+=("${_patchsource}/misc/dkms-clang.patch") + BUILD_FLAGS=( + CC=clang + LD=ld.lld + LLVM=1 + LLVM_IAS=1 + ) +fi + # WARNING The ZFS module doesn't build with selected RT sched due to licensing issues. if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; then unset _build_zfs