| ... | ... | @@ -1170,7 +1170,7 @@ fn addModuleTableToCacheHash( |
| 1170 | 1170 | hash.addOptionalBytes(mod.root.root_dir.path); |
| 1171 | 1171 | hash.addBytes(mod.root.sub_path); |
| 1172 | 1172 | }, |
| 1173 | | .files => |man| { |
| 1173 | .files => |man| if (mod.root_src_path.len != 0) { |
| 1174 | 1174 | const pkg_zig_file = try mod.root.joinString(arena, mod.root_src_path); |
| 1175 | 1175 | _ = try man.addFile(pkg_zig_file, null); |
| 1176 | 1176 | }, |
| ... | ... | @@ -2467,8 +2467,6 @@ fn addNonIncrementalStuffToCacheManifest( |
| 2467 | 2467 | comptime assert(link_hash_implementation_version == 11); |
| 2468 | 2468 | |
| 2469 | 2469 | if (comp.module) |mod| { |
| 2470 | | const main_zig_file = try mod.main_mod.root.joinString(arena, mod.main_mod.root_src_path); |
| 2471 | | _ = try man.addFile(main_zig_file, null); |
| 2472 | 2470 | try addModuleTableToCacheHash(gpa, arena, &man.hash, mod.root_mod, mod.main_mod, .{ .files = man }); |
| 2473 | 2471 | |
| 2474 | 2472 | // Synchronize with other matching comments: ZigOnlyHashStuff |