pub fn addStepDependencies(lazy_path: LazyPath, other_step: *Step) void 2359
2360
2361
2362
2363
2364
2365
2366
2367
2368 pub fn addStepDependencies(lazy_path: LazyPath, other_step: *Step) void {
switch (lazy_path) {
.src_path, .cwd_relative, .relative, .dependency => {},
.generated => |gen| {
const graph = other_step.owner.graph;
const generated_owner_step = graph.generated_files.items[@backingInt(gen.index)];
other_step.dependOn(generated_owner_step);
},
}
}
Adds dependencies this file source implies to the given step.