From c144003fca989780bb4dccefc2a289bcbfb9969b Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Wed, 29 Apr 2026 20:51:36 +0100 Subject: [PATCH] tests: fix libc test with `-Dno-matrix` --- test/tests.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tests.zig b/test/tests.zig index 7bbeb9f89f..bdb3a782ca 100644 --- 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,