| ... | @@ -188,6 +188,10 @@ fn stdIoActionToBehavior(action: StdIoAction) std.ChildProcess.StdIo { | ... | @@ -188,6 +188,10 @@ fn stdIoActionToBehavior(action: StdIoAction) std.ChildProcess.StdIo { |
| 188 | } | 188 | } |
| 189 | | 189 | |
| 190 | fn needOutputCheck(self: RunStep) bool { | 190 | fn needOutputCheck(self: RunStep) bool { |
| | 191 | switch (self.condition) { |
| | 192 | .always => return false, |
| | 193 | .output_outdated => {}, |
| | 194 | } |
| 191 | if (self.extra_file_dependencies.len > 0) return true; | 195 | if (self.extra_file_dependencies.len > 0) return true; |
| 192 | | 196 | |
| 193 | for (self.argv.items) |arg| switch (arg) { | 197 | for (self.argv.items) |arg| switch (arg) { |
| ... | @@ -195,10 +199,7 @@ fn needOutputCheck(self: RunStep) bool { | ... | @@ -195,10 +199,7 @@ fn needOutputCheck(self: RunStep) bool { |
| 195 | else => continue, | 199 | else => continue, |
| 196 | }; | 200 | }; |
| 197 | | 201 | |
| 198 | return switch (self.condition) { | 202 | return false; |
| 199 | .always => false, | | |
| 200 | .output_outdated => true, | | |
| 201 | }; | | |
| 202 | } | 203 | } |
| 203 | | 204 | |
| 204 | fn make(step: *Step) !void { | 205 | fn make(step: *Step) !void { |