zig

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

commit f9f00c2dee151231361df7aa45a71ca33f90dcd1 (tree)
parent d45f792c91c9c43cf3dd228429205caab3a6f22d
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri,  8 May 2026 12:38:14 -0700

configurer: serialize Step.CheckFile

Diffstat:
Mlib/compiler/configurer.zig | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/lib/compiler/configurer.zig b/lib/compiler/configurer.zig @@ -1037,7 +1037,20 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void { })); break :e @enumFromInt(extra_index); }, - .check_file => @panic("TODO"), + .check_file => e: { + const cf: *Step.CheckFile = @fieldParentPtr("step", step); + break :e @enumFromInt(try wc.addExtra(@as(Configuration.Step.CheckFile, .{ + .flags = .{ + .expected_exact = cf.expected_exact != null, + .expected_matches = cf.expected_matches.len != 0, + .max_bytes = cf.max_bytes != null, + }, + .file = try s.addLazyPath(cf.file), + .expected_exact = .{ .value = cf.expected_exact }, + .expected_matches = .{ .slice = cf.expected_matches }, + .max_bytes = .{ .value = cf.max_bytes }, + }))); + }, .config_header => @panic("TODO"), .obj_copy => @panic("TODO"), .options => @panic("TODO"),