| ... | @@ -257,13 +257,10 @@ pub fn build(b: *std.Build) !void { | ... | @@ -257,13 +257,10 @@ pub fn build(b: *std.Build) !void { |
| 257 | var code: u8 = undefined; | 257 | var code: u8 = undefined; |
| 258 | const git_describe_untrimmed = b.runAllowFail(&[_][]const u8{ | 258 | const git_describe_untrimmed = b.runAllowFail(&[_][]const u8{ |
| 259 | "git", | 259 | "git", |
| 260 | "-C", | 260 | "-C", b.build_root.path orelse ".", // affects the --git-dir argument |
| 261 | b.build_root.path orelse ".", | 261 | "--git-dir", ".git", // affected by the -C argument |
| 262 | "describe", | 262 | "describe", "--match", "*.*.*", // |
| 263 | "--match", | 263 | "--tags", "--abbrev=9", |
| 264 | "*.*.*", | | |
| 265 | "--tags", | | |
| 266 | "--abbrev=9", | | |
| 267 | }, &code, .Ignore) catch { | 264 | }, &code, .Ignore) catch { |
| 268 | break :v version_string; | 265 | break :v version_string; |
| 269 | }; | 266 | }; |