authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-27 13:12:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-27 13:12:36-07:00
log7b5280b687039faebfcb4d670507d0826f3ecba3
tree962580d90e7a23246ecaeccf6464a93d8da66649
parentba634c44ba7b75ac4397df3a0c3c5f11093553f0

build.zig: poison the configure cache appropriately

Until #35473 is implemented we have to re-run configure logic in case of these things: * git commit changes * test-cases on the file system changed * test-incremental on the file system changed

2 files changed, 13 insertions(+), 0 deletions(-)

build.zig+5
......@@ -259,6 +259,11 @@ pub fn build(b: *std.Build) !void {
259259 std.debug.print("error: version info cannot be retrieved from git. Zig version must be provided using -Dversion-string\n", .{});
260260 std.process.exit(1);
261261 }
262
263 // Ensure git version changes get picked up
264 // https://codeberg.org/ziglang/zig/issues/35473
265 b.graph.poisonCache();
266
262267 const version_string = b.fmt("{d}.{d}.{d}", .{ zig_version.major, zig_version.minor, zig_version.patch });
263268
264269 var code: u8 = undefined;
test/tests.zig+8
......@@ -2901,6 +2901,10 @@ pub fn addCases(
29012901
29022902 var cases = @import("src/Cases.zig").init(gpa, arena, io);
29032903
2904 // Ensure changes to these files get picked up
2905 // https://codeberg.org/ziglang/zig/issues/35473
2906 b.graph.poisonCache();
2907
29042908 var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true });
29052909 defer dir.close(io);
29062910
......@@ -2959,6 +2963,10 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []cons
29592963 }),
29602964 });
29612965
2966 // Ensure changes to these files get picked up
2967 // https://codeberg.org/ziglang/zig/issues/35473
2968 b.graph.poisonCache();
2969
29622970 var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true });
29632971 defer dir.close(io);
29642972