Skip to content

Commit

Permalink
PKGBUILD: Account for autofdo in pkgsuffix conditions
Browse files Browse the repository at this point in the history
AutoFDO wasn't handled here and was getting incorrectly marked as -gcc while being built with clang.

Signed-off-by: Eric Naim <[email protected]>
  • Loading branch information
1Naim committed Dec 5, 2024
1 parent d0f11c6 commit b153965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b153965

Please sign in to comment.