inline fn pkgHashFromBuildZig(comptime build_zig: type) ?[]const u8 build_zig: type2063
2064
2065
2066
2067
2068
2069
2070
2071inline fn pkgHashFromBuildZig(comptime build_zig: type) ?[]const u8 {
comptime {
const deps = @import("root").dependencies;
return for (@typeInfo(deps.packages).@"struct".decl_names) |pkg_hash| {
const pkg = @field(deps.packages, pkg_hash);
if (@hasDecl(pkg, "build_zig") and pkg.build_zig == build_zig) break pkg_hash;
} else null;
}
}