commit:     8f091ec5a8f33a72c0d57b1588d7b6ca18f1ee01
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Tue Mar  4 19:54:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  4 22:05:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f091ec5

dev-lang/zig: run tests with LLVM enabled and in Debug mode on 9999

Upstream uses release mode only for behavior tests, full suite is run
primarily with Debug, so other modes tend to fail with strange errors.

Seems like no other distro runs them in different modes, so align it
with upstream and everyone else.

Also restore `RESTRICT=test` for LLVM-disabled builds; it was removed
by mistake in some previous commit.

Bug: https://bugs.gentoo.org/949878
Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40891
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/zig/zig-9999.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild
index fb120976ef65..af0fe7f8192b 100644
--- a/dev-lang/zig/zig-9999.ebuild
+++ b/dev-lang/zig/zig-9999.ebuild
@@ -48,6 +48,7 @@ REQUIRED_USE="
        !llvm? ( !doc )
        llvm? ( ${LLVM_REQUIRED_USE} )
 "
+RESTRICT="!llvm? ( test )"
 
 # Used by both "cmake" and "zig" eclasses.
 BUILD_DIR="${WORKDIR}/${P}_build"
@@ -309,7 +310,9 @@ src_test() {
                fi
        done
 
-       ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native
+       # Run tests with Debug mode by default, like upstream does in CI,
+       # full test suite with other modes is in a sad state right now...
+       ZIG_EXE="./stage3/bin/zig" zig_src_test -Dskip-non-native 
--release=debug
 
        ZBS_ARGS=("${args_backup[@]}")
 }

Reply via email to