diff options
| author | Eric Joldasov <bratishkaerik@landless-city.net> | 2025-03-05 00:54:52 +0500 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-03-04 22:05:20 +0000 |
| commit | 8f091ec5a8f33a72c0d57b1588d7b6ca18f1ee01 (patch) | |
| tree | 8b7b36e5c8a6657f9960ae4556d81c03b2fa7c13 /dev-lang/zig/zig-9999.ebuild | |
| parent | 606d520a4820f07100a3db351df17e7ff8da98ba (diff) | |
| download | gentoo-8f091ec5a8f33a72c0d57b1588d7b6ca18f1ee01.tar.gz gentoo-8f091ec5a8f33a72c0d57b1588d7b6ca18f1ee01.tar.bz2 gentoo-8f091ec5a8f33a72c0d57b1588d7b6ca18f1ee01.zip | |
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@landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/40891
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/zig/zig-9999.ebuild')
| -rw-r--r-- | dev-lang/zig/zig-9999.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
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[@]}") } |
