zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a216c74131c439d7aa64b7a2a6be95aa753adb65 (tree)
parent cef16b5130eae56a77262df532aae5a458736670
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu, 26 Mar 2026 01:11:58 +0100

test: partial revert of ac793232eeeca87378b6b6cf4bec6e610859b5b1

This is just obviously wrong?! I'm fairly certain I didn't intend to push that
commit in that state.

Diffstat:
Mtest/tests.zig | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/test/tests.zig b/test/tests.zig @@ -2370,17 +2370,6 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { const resolved_target = b.resolveTargetQuery(test_target.target); const target = &resolved_target.result; - if (test_target.link_libc == false and target.requiresLibC()) continue; - // If the target requires libc, there's no point building the cases that - // don't explicitly link libc as they'll just end up actually linking - // libc anyway, thus creating duplicate work and making -Dskip-libc not - // work as expected. - if (test_target.link_libc == null and target.requiresLibC()) continue; - // These targets don't strictly require libc, but we don't yet have a - // syscall layer for them, so the compiler links libc by default. They - // therefore get the same treatment here. - if (test_target.link_libc == null and (target.os.tag == .freebsd or target.os.tag == .netbsd or target.os.tag == .openbsd)) continue; - if (!options.test_extra_targets and test_target.extra_target) continue; if (options.skip_non_native and !test_target.target.isNative())