introduce std.Build API for making configure script depend on fs

This commit is contained in:
Andrew Kelley committed 2026-06-29 23:50:18 -07:00
1 parent c616c00db6
commit a04f90c35b
8 files changed
+275 -98

No files matched your search

+2 -3
View File
@@ -264,9 +264,8 @@ pub fn build(b: *std.Build) !void {
std.process.exit(1);
}
// Ensure git version changes get picked up
// https://codeberg.org/ziglang/zig/issues/35473
b.graph.poisonCache();
// Ensure git version changes get picked up.
b.dependOnFileContents(b.graph.path(.build_root, ".git/HEAD"));
const version_string = b.fmt("{d}.{d}.{d}", .{ zig_version.major, zig_version.minor, zig_version.patch });