mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
introduce std.Build API for making configure script depend on fs
This commit is contained in:
1 parent
c616c00db6
commit
a04f90c35b
8 files changed
+275
-98
No files matched your search
@@ -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 });
|
||||
|
||||
|
||||
Reference in new issue
Block a user