| ... | @@ -889,7 +889,18 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void { | ... | @@ -889,7 +889,18 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void { |
| 889 | }))); | 889 | }))); |
| 890 | }, | 890 | }, |
| 891 | .find_program => @panic("TODO"), | 891 | .find_program => @panic("TODO"), |
| 892 | .fmt => @panic("TODO"), | 892 | .fmt => e: { |
| | 893 | const sf: *Step.Fmt = @fieldParentPtr("step", step); |
| | 894 | break :e @enumFromInt(try wc.addExtra(@as(Configuration.Step.Fmt, .{ |
| | 895 | .flags = .{ |
| | 896 | .paths = sf.paths.len != 0, |
| | 897 | .exclude_paths = sf.exclude_paths.len != 0, |
| | 898 | .check = sf.check, |
| | 899 | }, |
| | 900 | .paths = .{ .slice = try s.initLazyPathList(sf.paths) }, |
| | 901 | .exclude_paths = .{ .slice = try s.initLazyPathList(sf.exclude_paths) }, |
| | 902 | }))); |
| | 903 | }, |
| 893 | .translate_c => @panic("TODO"), | 904 | .translate_c => @panic("TODO"), |
| 894 | .write_file => e: { | 905 | .write_file => e: { |
| 895 | const wf: *Step.WriteFile = @fieldParentPtr("step", step); | 906 | const wf: *Step.WriteFile = @fieldParentPtr("step", step); |