mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
stage2: wire up AstGen to the progress bar
This commit is contained in:
parent
a51ff3a903
commit
f203334878
@ -2283,8 +2283,12 @@ fn workerAstGenFile(
|
||||
) void {
|
||||
defer wg.finish();
|
||||
|
||||
var child_prog_node = prog_node.start(file.sub_file_path, 0);
|
||||
child_prog_node.activate();
|
||||
defer child_prog_node.end();
|
||||
|
||||
const mod = comp.bin_file.options.module.?;
|
||||
mod.astGenFile(file, prog_node) catch |err| switch (err) {
|
||||
mod.astGenFile(file) catch |err| switch (err) {
|
||||
error.AnalysisFail => return,
|
||||
else => {
|
||||
file.status = .retryable_failure;
|
||||
|
||||
@ -2211,8 +2211,7 @@ comptime {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn astGenFile(mod: *Module, file: *Scope.File, prog_node: *std.Progress.Node) !void {
|
||||
_ = prog_node;
|
||||
pub fn astGenFile(mod: *Module, file: *Scope.File) !void {
|
||||
const tracy = trace(@src());
|
||||
defer tracy.end();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user