Compilation: redo whole vs incremental logic in create and update

This commit is contained in:
Andrew Kelley
2023-12-13 23:59:02 -07:00
parent 33cdf33b95
commit 769dea6e37
3 changed files with 387 additions and 535 deletions

View File

@@ -52,8 +52,6 @@ comptime {
gpa: Allocator,
comp: *Compilation,
/// Where build artifacts and incremental compilation metadata serialization go.
zig_cache_artifact_directory: Compilation.Directory,
/// Pointer to externally managed resource.
root_mod: *Package.Module,
/// Normally, `main_mod` and `root_mod` are the same. The exception is `zig test`, in which
@@ -2508,7 +2506,6 @@ pub fn deinit(mod: *Module) void {
emit_h.failed_decls.deinit(gpa);
emit_h.decl_table.deinit(gpa);
emit_h.allocated_emit_h.deinit(gpa);
gpa.destroy(emit_h);
}
for (mod.failed_files.values()) |value| {