authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-08 12:38:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:35-07:00
logf9f00c2dee151231361df7aa45a71ca33f90dcd1
tree7a7bbbbaffc2e81207d8a54467e2fc8595aeb00c
parentd45f792c91c9c43cf3dd228429205caab3a6f22d

configurer: serialize Step.CheckFile


1 files changed, 14 insertions(+), 1 deletions(-)

lib/compiler/configurer.zig+14-1
...@@ -1037,7 +1037,20 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void {...@@ -1037,7 +1037,20 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void {
1037 }));1037 }));
1038 break :e @enumFromInt(extra_index);1038 break :e @enumFromInt(extra_index);
1039 },1039 },
1040 .check_file => @panic("TODO"),1040 .check_file => e: {
1041 const cf: *Step.CheckFile = @fieldParentPtr("step", step);
1042 break :e @enumFromInt(try wc.addExtra(@as(Configuration.Step.CheckFile, .{
1043 .flags = .{
1044 .expected_exact = cf.expected_exact != null,
1045 .expected_matches = cf.expected_matches.len != 0,
1046 .max_bytes = cf.max_bytes != null,
1047 },
1048 .file = try s.addLazyPath(cf.file),
1049 .expected_exact = .{ .value = cf.expected_exact },
1050 .expected_matches = .{ .slice = cf.expected_matches },
1051 .max_bytes = .{ .value = cf.max_bytes },
1052 })));
1053 },
1041 .config_header => @panic("TODO"),1054 .config_header => @panic("TODO"),
1042 .obj_copy => @panic("TODO"),1055 .obj_copy => @panic("TODO"),
1043 .options => @panic("TODO"),1056 .options => @panic("TODO"),