Skip to content

Commit

Permalink
Update the build runner
Browse files Browse the repository at this point in the history
Use `std.meta.declarations` for compatibility with latest and previous, supported, Zig versions
  • Loading branch information
llogick committed Aug 31, 2024
1 parent fcb8bcb commit 9958641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_runner/0.12.0.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ fn extractBuildInformation(

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

0 comments on commit 9958641

Please sign in to comment.