| ... | @@ -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"); |
| 84 | | 84 | |
| 85 | wf.maybeUpdateName(); | 85 | wf.maybeUpdateName(); |
| | 86 | source.addStepDependencies(&wf.step); |
| 86 | } | 87 | } |
| 87 | | 88 | |
| 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 | } |
| 101 | | 103 | |
| 102 | /// A path relative to the package root. | 104 | /// A path relative to the package root. |