commit:     7200aecb3db3b2dd91129e1530bcb75ce096af91
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  8 10:48:00 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug  8 10:48:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7200aecb

toolchain.eclass: add -g for tests

I haven't looked closely yet but I think this is the same as the
binutils issue from before.

Bug: https://bugs.gentoo.org/934149
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 9bbe0cb7e0af..491eea823af2 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1956,6 +1956,10 @@ toolchain_src_test() {
                # Go doesn't support this and causes noisy warnings
                filter-flags -Wbuiltin-declaration-mismatch
 
+               # configure defaults to '-O2 -g' and some tests expect it
+               # accordingly.
+               append-flags -g
+
                # TODO: Does this handle s390 (-m31) correctly?
                is_multilib && GCC_TESTS_RUNTESTFLAGS+=" 
--target_board=unix{,-m32}"
 

Reply via email to