@@ -609,7 +609,8 @@ pub fn build(b: *Builder) void {
609
609
named_verify .dependOn (& verify_step .step );
610
610
611
611
const chain_verify = b .allocator .create (Step ) catch unreachable ;
612
- chain_verify .* = Step .initNoOp (.custom , b .fmt ("chain {s}" , .{key }), b .allocator );
612
+ const step_options = Step.Options { .id = .custom , .name = b .fmt ("chain {s}" , .{key }), .owner = b };
613
+ chain_verify .* = Step .init (step_options );
613
614
chain_verify .dependOn (& verify_step .step );
614
615
615
616
const named_chain = b .step (b .fmt ("{s}_start" , .{key }), b .fmt ("Check all solutions starting at {s}" , .{ex .main_file }));
@@ -635,16 +636,18 @@ const ZiglingStep = struct {
635
636
636
637
pub fn create (builder : * Builder , exercise : Exercise , use_healed : bool ) * @This () {
637
638
const self = builder .allocator .create (@This ()) catch unreachable ;
639
+ const step_options = Step.Options { .id = .custom , .name = exercise .main_file , .owner = builder , .makeFn = make };
638
640
self .* = .{
639
- .step = Step .init (.custom , exercise . main_file , builder . allocator , make ),
641
+ .step = Step .init (step_options ),
640
642
.exercise = exercise ,
641
643
.builder = builder ,
642
644
.use_healed = use_healed ,
643
645
};
644
646
return self ;
645
647
}
646
648
647
- fn make (step : * Step ) anyerror ! void {
649
+ fn make (step : * Step , prog_node : * std.Progress.Node ) anyerror ! void {
650
+ _ = prog_node ;
648
651
const self = @fieldParentPtr (@This (), "step" , step );
649
652
self .makeInternal () catch {
650
653
if (self .exercise .hint .len > 0 ) {
0 commit comments