| ... | ... | @@ -4928,9 +4928,11 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi |
| 4928 | 4928 | // The first one is a dummy package for the current project. |
| 4929 | 4929 | continue; |
| 4930 | 4930 | } |
| 4931 | if (!f.has_build_zig) |
| 4932 | continue; |
| 4931 | 4933 | const m = try Package.Module.create(arena, .{ |
| 4932 | 4934 | .root = try f.package_root.clone(arena), |
| 4933 | | .root_src_path = if (f.has_build_zig) Package.build_zig_basename else "", |
| 4935 | .root_src_path = Package.build_zig_basename, |
| 4934 | 4936 | }); |
| 4935 | 4937 | const hash_cloned = try arena.dupe(u8, &hash); |
| 4936 | 4938 | deps_mod.deps.putAssumeCapacityNoClobber(hash_cloned, m); |