Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ if [ -n "$_build_nvidia_open" ]; then
fi

# Use generated AutoFDO Profile
if [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
if _is_lto_kernel && [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
if [ -e "$_autofdo_profile_name" ]; then
source+=("$_autofdo_profile_name")
else
Expand Down Expand Up @@ -480,7 +480,7 @@ prepare() {
scripts/config -e AUTOFDO_CLANG
fi

if [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
if _is_lto_kernel && [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
echo "AutoFDO profile has been found..."
BUILD_FLAGS+=(CLANG_AUTOFDO_PROFILE="${srcdir}/${_autofdo_profile_name}")
fi
Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ if [ -n "$_build_nvidia_open" ]; then
fi

# Use generated AutoFDO Profile
if [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
if _is_lto_kernel && [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
if [ -e "$_autofdo_profile_name" ]; then
source+=("$_autofdo_profile_name")
else
Expand Down Expand Up @@ -479,7 +479,7 @@ prepare() {
scripts/config -e AUTOFDO_CLANG
fi

if [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
if _is_lto_kernel && [ -n "$_autofdo" ] && [ -n "$_autofdo_profile_name" ]; then
echo "AutoFDO profile has been found..."
BUILD_FLAGS+=(CLANG_AUTOFDO_PROFILE="${srcdir}/${_autofdo_profile_name}")
fi
Expand Down
Loading