Browse Source

cleanup for PR

Zendril 6 months ago
parent
commit
a9487c246f
1 changed files with 6 additions and 4 deletions
  1. 6 4
      build.zig

+ 6 - 4
build.zig

@@ -294,11 +294,13 @@ pub fn build(b: *Build) !void {
         }
     }
 
-    for (exercises[starting_exercise..]) |ex| {
-        const verify_stepn = ZiglingStep.create(b, ex, work_path, .normal);
-        verify_stepn.step.dependOn(prev_step);
+    for (exercises) |ex| {
+        if (starting_exercise < ex.number()) {
+            const verify_stepn = ZiglingStep.create(b, ex, work_path, .normal);
+            verify_stepn.step.dependOn(prev_step);
 
-        prev_step = &verify_stepn.step;
+            prev_step = &verify_stepn.step;
+        }
     }
     ziglings_step.dependOn(prev_step);