| author | |
| committer | |
| log | 7b5280b687039faebfcb4d670507d0826f3ecba3 |
| tree | 962580d90e7a23246ecaeccf6464a93d8da66649 |
| parent | ba634c44ba7b75ac4397df3a0c3c5f11093553f0 |
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 changed2 files changed, 13 insertions(+), 0 deletions(-)
build.zig+5| ... | ... | @@ -259,6 +259,11 @@ pub fn build(b: *std.Build) !void { |
| 259 | 259 | std.debug.print("error: version info cannot be retrieved from git. Zig version must be provided using -Dversion-string\n", .{}); |
| 260 | 260 | std.process.exit(1); |
| 261 | 261 | } |
| 262 | ||
| 263 | // Ensure git version changes get picked up | |
| 264 | // https://codeberg.org/ziglang/zig/issues/35473 | |
| 265 | b.graph.poisonCache(); | |
| 266 | ||
| 262 | 267 | const version_string = b.fmt("{d}.{d}.{d}", .{ zig_version.major, zig_version.minor, zig_version.patch }); |
| 263 | 268 | |
| 264 | 269 | var code: u8 = undefined; |
test/tests.zig+8| ... | ... | @@ -2901,6 +2901,10 @@ pub fn addCases( |
| 2901 | 2901 | |
| 2902 | 2902 | var cases = @import("src/Cases.zig").init(gpa, arena, io); |
| 2903 | 2903 | |
| 2904 | // Ensure changes to these files get picked up | |
| 2905 | // https://codeberg.org/ziglang/zig/issues/35473 | |
| 2906 | b.graph.poisonCache(); | |
| 2907 | ||
| 2904 | 2908 | var dir = try b.root.openDir(io, "test/cases", .{ .iterate = true }); |
| 2905 | 2909 | defer dir.close(io); |
| 2906 | 2910 | |
| ... | ... | @@ -2959,6 +2963,10 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []cons |
| 2959 | 2963 | }), |
| 2960 | 2964 | }); |
| 2961 | 2965 | |
| 2966 | // Ensure changes to these files get picked up | |
| 2967 | // https://codeberg.org/ziglang/zig/issues/35473 | |
| 2968 | b.graph.poisonCache(); | |
| 2969 | ||
| 2962 | 2970 | var dir = try b.root.openDir(io, "test/incremental", .{ .iterate = true }); |
| 2963 | 2971 | defer dir.close(io); |
| 2964 | 2972 |