aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-24 21:51:11 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 17:51:21 -0700
commit98dd4f7847c0d50c3367a3bf12a80d5bf7b1fed2 (patch)
tree56f48736f2245f42f727c921d4fa024757f5bd41 /src/Compilation.zig
parent4f8a44cd0f636f3ffe008b2cedafa1e51a4a3796 (diff)
downloadzig-98dd4f7847c0d50c3367a3bf12a80d5bf7b1fed2.tar.gz
zig-98dd4f7847c0d50c3367a3bf12a80d5bf7b1fed2.zip
frontend: skip astgen for builtin.zig
since it's already done ahead of time and always unchanging
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index c248685601..00d6ec3193 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -2131,11 +2131,10 @@ pub fn update(comp: *Compilation, main_progress_node: *std.Progress.Node) !void
// Put a work item in for every known source file to detect if
// it changed, and, if so, re-compute ZIR and then queue the job
// to update it.
- // We still want AstGen work items for stage1 so that we expose compile errors
- // that are implemented in stage2 but not stage1.
try comp.astgen_work_queue.ensureUnusedCapacity(module.import_table.count());
- for (module.import_table.values()) |value| {
- comp.astgen_work_queue.writeItemAssumeCapacity(value);
+ for (module.import_table.values()) |file| {
+ if (file.mod.isBuiltin()) continue;
+ comp.astgen_work_queue.writeItemAssumeCapacity(file);
}
// Put a work item in for checking if any files used with `@embedFile` changed.