Skip to content

Commit

Permalink
Fixup some stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 committed Nov 5, 2024
1 parent 16574ec commit fe15caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ prepare() {

# Enable Clang AutoFDO
# Add additonal check if Thin or Full LTO is enabled otherwise die
if [ "$autofdo" ] || [ "$autofdo_use" ]; then
if [ "$_autofdo" ] || [ -n "$_autofdo_use" ]; then
scripts/config -e AUTOFDO_CLANG
fi

Expand Down Expand Up @@ -564,7 +564,7 @@ build() {
# Use AutoFDO Profile named perf.afdo
# Maybe we can find a way to make this dyamic, but for now keep it hardcoded
# As soon LLVM 19 is in arch repository, we can also think about Propellor
if [ -n "$autofdo_use" ]; then
if [ -n "$_autofdo_use" ]; then
make "${BUILD_FLAGS[@]}" CLANG_AUTOFDO_PROFILE=${srcdir}/perf.afdo -j"$(nproc)" all
else
make "${BUILD_FLAGS[@]}" -j"$(nproc)" all
Expand Down

0 comments on commit fe15caf

Please sign in to comment.