diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-09 21:47:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-07-12 00:14:08 -0700 |
| commit | d1c14f2f52ddec476eca6d605b985a27f4d4fe28 (patch) | |
| tree | 34368ed797390d5e92a2b2125da1a3c1920aaebb /test | |
| parent | 0cc492a272ef9c03a34b57a26bf570b242615ddf (diff) | |
| download | zig-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 'test')
| -rw-r--r-- | test/tests.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig index e19a9efccf..0862f8deb0 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -882,7 +882,7 @@ pub fn addCliTests(b: *std.Build) *Step { const unformatted_code_utf16 = "\xff\xfe \x00 \x00 \x00 \x00/\x00/\x00 \x00n\x00o\x00 \x00r\x00e\x00a\x00s\x00o\x00n\x00"; const fmt6_path = std.fs.path.join(b.allocator, &.{ tmp_path, "fmt6.zig" }) catch @panic("OOM"); - const write6 = b.addWriteFiles(); + const write6 = b.addUpdateSourceFiles(); write6.addBytesToSource(unformatted_code_utf16, fmt6_path); write6.step.dependOn(&run5.step); |
