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: [...@@ -83,6 +83,7 @@ pub fn addCopyFile(wf: *WriteFileStep, source: std.Build.FileSource, sub_path: [
83 wf.files.append(gpa, file) catch @panic("OOM");83 wf.files.append(gpa, file) catch @panic("OOM");
8484
85 wf.maybeUpdateName();85 wf.maybeUpdateName();
86 source.addStepDependencies(&wf.step);
86}87}
8788
88/// A path relative to the package root.89/// A path relative to the package root.
...@@ -97,6 +98,7 @@ pub fn addCopyFileToSource(wf: *WriteFileStep, source: std.Build.FileSource, sub...@@ -97,6 +98,7 @@ pub fn addCopyFileToSource(wf: *WriteFileStep, source: std.Build.FileSource, sub
97 .contents = .{ .copy = source },98 .contents = .{ .copy = source },
98 .sub_path = sub_path,99 .sub_path = sub_path,
99 }) catch @panic("OOM");100 }) catch @panic("OOM");
101 source.addStepDependencies(&wf.step);
100}102}
101103
102/// A path relative to the package root.104/// A path relative to the package root.