Function addFileInput [src]
Adds an additional input files that, when modified, indicates that this Run
step should be re-executed.
If the Run step is determined to have side-effects, the Run step is always
executed when it appears in the build graph, regardless of whether this
file has been modified.
Prototype
pub fn addFileInput(self: *Run, file_input: std.Build.LazyPath) void
Parameters
self: *Run
file_input: std.Build.LazyPath
Source
pub fn addFileInput(self: *Run, file_input: std.Build.LazyPath) void {
file_input.addStepDependencies(&self.step);
self.file_inputs.append(self.step.owner.allocator, file_input.dupe(self.step.owner)) catch @panic("OOM");
}