commit: f66787897a590b8c949d257e3a9107f8995f62ae
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 6 01:44:15 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 6 01:45:08 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6678789
toolchain.eclass: run tests for -m32 if multilib
TODO: Does this handle s390 (-m31) correctly?
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index d2f42804301e..9304800f09f7 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1898,7 +1898,6 @@ gcc_do_make() {
#---->> src_test <<----
# TODO: add JIT testing
-# TODO: add multilib testing
toolchain_src_test() {
# GCC's testsuite is a special case.
#
@@ -1948,6 +1947,9 @@ toolchain_src_test() {
# Go doesn't support this and causes noisy warnings
filter-flags -Wbuiltin-declaration-mismatch
+ # TODO: Does this handle s390 (-m31) correctly?
+ is_multilib && GCC_TESTS_RUNTESTFLAGS+="
--target_board=unix\{,-m32\}"
+
# nonfatal here as we die if the comparison below fails. Also,
note that
# the exit code of targets other than 'check' may be unreliable.
nonfatal emake -C "${WORKDIR}"/build -k
"${GCC_TESTS_CHECK_TARGET}" \