| ... | @@ -2465,7 +2465,9 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { | ... | @@ -2465,7 +2465,9 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { |
| 2465 | | 2465 | |
| 2466 | if (options.test_only) |test_only| { | 2466 | if (options.test_only) |test_only| { |
| 2467 | const test_target: ModuleTestTarget = switch (test_only) { | 2467 | const test_target: ModuleTestTarget = switch (test_only) { |
| 2468 | .default => module_test_targets[0], | 2468 | .default => .{ |
| | 2469 | .link_libc = if (std.mem.eql(u8, options.name, "libc")) true else null, |
| | 2470 | }, |
| 2469 | .fuzz => |optimize| .{ | 2471 | .fuzz => |optimize| .{ |
| 2470 | .optimize_mode = optimize, | 2472 | .optimize_mode = optimize, |
| 2471 | .use_llvm = true, | 2473 | .use_llvm = true, |