Skip to content

Commit

Permalink
app-shells/bash: fix build with gcc and USE=pgo
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/889848
Signed-off-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
  • Loading branch information
sevz17 committed Jan 6, 2023
1 parent e6b4565 commit c0709b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app-shells/bash/bash-5.2_p15.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ src_compile() {

emake CFLAGS="${CFLAGS} -fprofile-generate=${T}/pgo -fprofile-dir=${T}/pgo" -k check

tc-is-clang && llvm-profdata merge "${T}"/pgo --output="${T}"/pgo/default.profdata || die
if tc-is-clang; then
llvm-profdata merge "${T}"/pgo --output="${T}"/pgo/default.profdata || die
fi

# Rebuild Bash using the profiling data we just generated.
emake clean
Expand Down
4 changes: 3 additions & 1 deletion app-shells/bash/bash-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ src_compile() {

emake CFLAGS="${CFLAGS} -fprofile-generate=${T}/pgo -fprofile-dir=${T}/pgo" -k check

tc-is-clang && llvm-profdata merge "${T}"/pgo --output="${T}"/pgo/default.profdata || die
if tc-is-clang; then
llvm-profdata merge "${T}"/pgo --output="${T}"/pgo/default.profdata || die
fi

# Rebuild Bash using the profiling data we just generated.
emake clean
Expand Down

0 comments on commit c0709b1

Please sign in to comment.