commit: 31d30791ea6ace369259757da891a56ed1267a9c
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 12 12:12:43 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 12 12:13:02 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31d30791
app-shells/bash: tidy up PGO bits
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-shells/bash/bash-5.2_p15-r7.ebuild | 2 +-
app-shells/bash/bash-9999.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app-shells/bash/bash-5.2_p15-r7.ebuild
b/app-shells/bash/bash-5.2_p15-r7.ebuild
index af96b44e4a86..a80bdd6357a4 100644
--- a/app-shells/bash/bash-5.2_p15-r7.ebuild
+++ b/app-shells/bash/bash-5.2_p15-r7.ebuild
@@ -260,7 +260,7 @@ src_compile() {
# -fprofile-partial-training because upstream note the test suite isn't
super comprehensive
# See
https://documentation.suse.com/sbp/all/html/SBP-GCC-10/index.html#sec-gcc10-pgo
local pgo_generate_flags=$(usev pgo "-fprofile-update=atomic
-fprofile-dir=${T}/pgo -fprofile-generate=${T}/pgo $(test-flags-CC
-fprofile-partial-training)")
- local pgo_use_flags=$(usev pgo "-fprofile-use=${T}/pgo
-fprofile-dir=${T}/pgo")
+ local pgo_use_flags=$(usev pgo "-fprofile-use=${T}/pgo
-fprofile-dir=${T}/pgo $(test-flags-CC -fprofile-partial-training)")
emake CFLAGS="${CFLAGS} ${pgo_generate_flags}"
use plugins && emake -C examples/loadables CFLAGS="${CFLAGS}
${pgo_generate_flags}" all others
diff --git a/app-shells/bash/bash-9999.ebuild b/app-shells/bash/bash-9999.ebuild
index e2a0d09d841b..6e86e0d185f3 100644
--- a/app-shells/bash/bash-9999.ebuild
+++ b/app-shells/bash/bash-9999.ebuild
@@ -257,7 +257,7 @@ src_compile() {
# -fprofile-partial-training because upstream note the test suite isn't
super comprehensive
# See
https://documentation.suse.com/sbp/all/html/SBP-GCC-10/index.html#sec-gcc10-pgo
local pgo_generate_flags=$(usev pgo "-fprofile-update=atomic
-fprofile-dir=${T}/pgo -fprofile-generate=${T}/pgo $(test-flags-CC
-fprofile-partial-training)")
- local pgo_use_flags=$(usev pgo "-fprofile-use=${T}/pgo
-fprofile-dir=${T}/pgo")
+ local pgo_use_flags=$(usev pgo "-fprofile-use=${T}/pgo
-fprofile-dir=${T}/pgo $(test-flags-CC -fprofile-partial-training)")
emake CFLAGS="${CFLAGS} ${pgo_generate_flags}"
use plugins && emake -C examples/loadables CFLAGS="${CFLAGS}
${pgo_generate_flags}" all others