Skip to content

Commit ace6f6d

Browse files
llogickTechatrix
authored andcommitted
Update the build runner
Use `std.meta.declarations` for compatibility with latest and previous, supported, Zig versions
1 parent fcb8bcb commit ace6f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build_runner/0.12.0.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ fn extractBuildInformation(
10681068

10691069
var deps_build_roots: std.ArrayListUnmanaged(BuildConfig.DepsBuildRoots) = .{};
10701070
for (dependencies.root_deps) |root_dep| {
1071-
inline for (@typeInfo(dependencies.packages).Struct.decls) |package| blk: {
1071+
inline for (comptime std.meta.declarations(dependencies.packages)) |package| blk: {
10721072
if (std.mem.eql(u8, package.name, root_dep[1])) {
10731073
const package_info = @field(dependencies.packages, package.name);
10741074
if (!@hasDecl(package_info, "build_root")) break :blk;

0 commit comments

Comments
 (0)