authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-18 22:02:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:35-07:00
log6327741b73e00e08880b619ef4b10ad2a0a217d3
tree7c8059487eda3fd9b938ea365a4c2d87bea837d9
parentbb1b59ee1feecd5500847d394fc90842efe138ed

doctest: update to newer std.zig API


1 files changed, 7 insertions(+), 2 deletions(-)

tools/doctest.zig+7-2
......@@ -311,7 +311,9 @@ fn printOutput(
311311 .arch_os_abi = triple,
312312 });
313313 const target = try std.zig.system.resolveTargetQuery(io, target_query);
314 switch (getExternalExecutor(io, &host, &target, .{
314 switch (getExternalExecutor(io, &target, .{
315 .host_cpu_arch = host.cpu.arch,
316 .host_os_tag = host.os.tag,
315317 .link_libc = code.link_libc,
316318 })) {
317319 .native => {},
......@@ -526,7 +528,10 @@ fn printOutput(
526528 .lib => {
527529 const bin_basename = try std.zig.binNameAlloc(arena, .{
528530 .root_name = code_name,
529 .target = &builtin.target,
531 .cpu_arch = builtin.target.cpu.arch,
532 .os_tag = builtin.target.os.tag,
533 .ofmt = builtin.target.ofmt,
534 .abi = builtin.target.abi,
530535 .output_mode = .Lib,
531536 });
532537