| ... | ... | @@ -40,6 +40,31 @@ pub fn print(sc: *const ScannedConfig, w: *Writer) Writer.Error!void { |
| 40 | 40 | try deps_field.end(); |
| 41 | 41 | } |
| 42 | 42 | try step_field.field("max_rss", step.max_rss.toBytes(), .{}); |
| 43 | const type_erased_flags: Configuration.Step.Flags = @bitCast(c.extra[step.extra_index]); |
| 44 | switch (type_erased_flags.tag) { |
| 45 | .check_file => try step_field.field("check_file", .TODO, .{}), |
| 46 | .check_object => try step_field.field("check_object", .TODO, .{}), |
| 47 | .compile => try step_field.field("compile", .TODO, .{}), |
| 48 | .config_header => try step_field.field("config_header", .TODO, .{}), |
| 49 | .fail => try step_field.field("fail", .TODO, .{}), |
| 50 | .fmt => try step_field.field("fmt", .TODO, .{}), |
| 51 | .install_artifact => try step_field.field("install_artifact", .TODO, .{}), |
| 52 | .install_dir => try step_field.field("install_dir", .TODO, .{}), |
| 53 | .install_file => try step_field.field("install_file", .TODO, .{}), |
| 54 | .objcopy => try step_field.field("objcopy", .TODO, .{}), |
| 55 | .options => try step_field.field("options", .TODO, .{}), |
| 56 | .remove_dir => try step_field.field("remove_dir", .TODO, .{}), |
| 57 | .run => try step_field.field("run", .TODO, .{}), |
| 58 | .top_level => { |
| 59 | const top_level = c.extraData(Configuration.Step.TopLevel, step.extra_index); |
| 60 | var sf = try step_field.beginStructField("top_level", .{}); |
| 61 | try sf.field("description", top_level.description.slice(c), .{}); |
| 62 | try sf.end(); |
| 63 | }, |
| 64 | .translate_c => try step_field.field("translate_c", .TODO, .{}), |
| 65 | .update_source_files => try step_field.field("update_source_files", .TODO, .{}), |
| 66 | .write_file => try step_field.field("write_file", .TODO, .{}), |
| 67 | } |
| 43 | 68 | try step_field.end(); |
| 44 | 69 | } |
| 45 | 70 | try tf.end(); |