aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-09 21:47:26 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-07-12 00:14:08 -0700
commitd1c14f2f52ddec476eca6d605b985a27f4d4fe28 (patch)
tree34368ed797390d5e92a2b2125da1a3c1920aaebb /build.zig
parent0cc492a272ef9c03a34b57a26bf570b242615ddf (diff)
downloadzig-d1c14f2f52ddec476eca6d605b985a27f4d4fe28.tar.gz
zig-d1c14f2f52ddec476eca6d605b985a27f4d4fe28.zip
std.Build.Step.WriteFile: extract UpdateSourceFiles
This has been planned for quite some time; this commit finally does it. Also implements file system watching integration in the make() implementation for UpdateSourceFiles and fixes the reporting of step caching for both. WriteFile does not yet have file system watching integration.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 0f0d7d4d67..a364982ce9 100644
--- a/build.zig
+++ b/build.zig
@@ -595,7 +595,7 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {
run_opt.addArg("-o");
run_opt.addFileArg(b.path("stage1/zig1.wasm"));
- const copy_zig_h = b.addWriteFiles();
+ const copy_zig_h = b.addUpdateSourceFiles();
copy_zig_h.addCopyFileToSource(b.path("lib/zig.h"), "stage1/zig.h");
const update_zig1_step = b.step("update-zig1", "Update stage1/zig1.wasm");