From b153965bf45463d0ba463de7a7054eb9c5a31534 Mon Sep 17 00:00:00 2001 From: Eric Naim Date: Fri, 6 Dec 2024 04:04:12 +0800 Subject: [PATCH] PKGBUILD: Account for autofdo in pkgsuffix conditions AutoFDO wasn't handled here and was getting incorrectly marked as -gcc while being built with clang. Signed-off-by: Eric Naim --- linux-cachyos-rc/PKGBUILD | 2 +- linux-cachyos/PKGBUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD index 7e0c3270..352860ab 100644 --- a/linux-cachyos-rc/PKGBUILD +++ b/linux-cachyos-rc/PKGBUILD @@ -163,7 +163,7 @@ _is_clang_kernel() { if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix="cachyos-rc-lto" -elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ] && [ -z "$_autofdo" ]; then _pkgsuffix="cachyos-rc-gcc" else _pkgsuffix="cachyos-rc" diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD index 9727ee8d..fc956bd9 100644 --- a/linux-cachyos/PKGBUILD +++ b/linux-cachyos/PKGBUILD @@ -163,7 +163,7 @@ _is_clang_kernel() { if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix=cachyos-lto -elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ] && [ -z "$_autofdo" ]; then _pkgsuffix=cachyos-gcc else _pkgsuffix=cachyos