authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-09 22:02:37-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:14-07:00
logf31aeb0010c950430a6a388f6933498cd8e29cbc
treef0fefe94a23113f864b9f20187e416b37b41da32
parenta333bb91ffcf63fbe377ddc82fd7f1633e269430

std.Build.WriteFileStep: add missing step dependencies


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/Build/WriteFileStep.zig+2
......@@ -83,6 +83,7 @@ pub fn addCopyFile(wf: *WriteFileStep, source: std.Build.FileSource, sub_path: [
8383 wf.files.append(gpa, file) catch @panic("OOM");
8484
8585 wf.maybeUpdateName();
86 source.addStepDependencies(&wf.step);
8687}
8788
8889/// A path relative to the package root.
......@@ -97,6 +98,7 @@ pub fn addCopyFileToSource(wf: *WriteFileStep, source: std.Build.FileSource, sub
9798 .contents = .{ .copy = source },
9899 .sub_path = sub_path,
99100 }) catch @panic("OOM");
101 source.addStepDependencies(&wf.step);
100102}
101103
102104/// A path relative to the package root.