From 94d7b8c023f839de11a3a90a70e3fb302c00f928 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 a76bcffd..486f0663 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 40bacfcc..6b64ff03 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