zig

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

commit c144003fca989780bb4dccefc2a289bcbfb9969b (tree)
parent 72d954e7d3cfb8b46a26d5a199a9a5ecd36d87be
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date:   Wed, 29 Apr 2026 20:51:36 +0100

tests: fix libc test with `-Dno-matrix`

Diffstat:
Mtest/tests.zig | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/tests.zig b/test/tests.zig @@ -2465,7 +2465,9 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { if (options.test_only) |test_only| { const test_target: ModuleTestTarget = switch (test_only) { - .default => module_test_targets[0], + .default => .{ + .link_libc = if (std.mem.eql(u8, options.name, "libc")) true else null, + }, .fuzz => |optimize| .{ .optimize_mode = optimize, .use_llvm = true,