aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/InstallFile.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-05 12:24:32 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-07-12 00:14:07 -0700
commit6e025fc2e298c633ab36e9058a2cc610f57e4522 (patch)
treedc58c61d22da365eaae0321de0af242f250b43c6 /lib/std/Build/Step/InstallFile.zig
parentd2bec8f92f15ac16a0714ddc8282ab31dd5bb889 (diff)
downloadzig-6e025fc2e298c633ab36e9058a2cc610f57e4522.tar.gz
zig-6e025fc2e298c633ab36e9058a2cc610f57e4522.zip
build system: add --watch flag and report source file in InstallFile
This direction is not quite right because it mutates shared state in a threaded context, so the next commit will need to fix this.
Diffstat (limited to 'lib/std/Build/Step/InstallFile.zig')
-rw-r--r--lib/std/Build/Step/InstallFile.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Build/Step/InstallFile.zig b/lib/std/Build/Step/InstallFile.zig
index 8202a9d796..c7f1088c48 100644
--- a/lib/std/Build/Step/InstallFile.zig
+++ b/lib/std/Build/Step/InstallFile.zig
@@ -40,6 +40,7 @@ fn make(step: *Step, prog_node: std.Progress.Node) !void {
_ = prog_node;
const b = step.owner;
const install_file: *InstallFile = @fieldParentPtr("step", step);
+ step.addWatchInput(install_file.source);
const full_src_path = install_file.source.getPath2(b, step);
const full_dest_path = b.getInstallPath(install_file.dir, install_file.dest_rel_path);
const cwd = std.fs.cwd();