mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
build: Don't check parent directories for git tag
Sometimes Zig is built not from a git repository (e.g. from tarball), but inside another git repository (e.g. distro package repository). Make sure that the version check tries to parse a tag of Zig, and not of a parent directory.
This commit is contained in:
parent
3b3c18909d
commit
21620f3c65
1 changed files with 2 additions and 0 deletions
|
|
@ -259,6 +259,8 @@ pub fn build(b: *std.Build) !void {
|
|||
"git",
|
||||
"-C",
|
||||
b.build_root.path orelse ".",
|
||||
"--git-dir",
|
||||
".git",
|
||||
"describe",
|
||||
"--match",
|
||||
"*.*.*",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue