~novakane/zelbar

eeb66f5bb22b4e94b52d0d5f585bff4be4fffc9e — Hugo Machet 1 year, 1 month ago 46ebe1c
build: Fix if build_root.path is null
1 files changed, 1 insertions(+), 1 deletions(-)

M build.zig
M build.zig => build.zig +1 -1
@@ 22,7 22,7 @@ pub fn build(b: *Builder) !void {
            var ret: u8 = undefined;

            const git_describe_long = b.execAllowFail(
                &[_][]const u8{ "git", "-C", b.build_root.path.?, "describe", "--long" },
                &[_][]const u8{ "git", "-C", b.build_root.path orelse ".", "describe", "--long" },
                &ret,
                .Inherit,
            ) catch break :blk version;