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