commit f31aeb0010c950430a6a388f6933498cd8e29cbc (tree)
parent a333bb91ffcf63fbe377ddc82fd7f1633e269430
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 9 Mar 2023 22:02:37 -0700
std.Build.WriteFileStep: add missing step dependencies
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/std/Build/WriteFileStep.zig b/lib/std/Build/WriteFileStep.zig
@@ -83,6 +83,7 @@ pub fn addCopyFile(wf: *WriteFileStep, source: std.Build.FileSource, sub_path: [
wf.files.append(gpa, file) catch @panic("OOM");
wf.maybeUpdateName();
+ source.addStepDependencies(&wf.step);
}
/// A path relative to the package root.
@@ -97,6 +98,7 @@ pub fn addCopyFileToSource(wf: *WriteFileStep, source: std.Build.FileSource, sub
.contents = .{ .copy = source },
.sub_path = sub_path,
}) catch @panic("OOM");
+ source.addStepDependencies(&wf.step);
}
/// A path relative to the package root.