zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1a63d26836f5c87e45280772b8ba9c822ba75b78 (tree)
parent aa0652ff8dc9add09567d69a92ddaff5ad386919
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 17 Mar 2026 17:10:00 -0700

maker: implement TopLevel step

Diffstat:
MBRANCH_TODO | 1+
Mlib/compiler/Maker/Step.zig | 16+++++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/BRANCH_TODO b/BRANCH_TODO @@ -10,6 +10,7 @@ * test a bunch of third party projects / help people migrate * refactor with DefaultingEnum * inspect b4ffb402c082605c4b324e88120306fc8fb3cf32 diff and apply changes as needed (merge conflict) +* https://codeberg.org/ziglang/zig/issues/31397 ## Followup Issues * link_eh_frame_hdr should be DefaultingBool diff --git a/lib/compiler/Maker/Step.zig b/lib/compiler/Maker/Step.zig @@ -79,7 +79,7 @@ pub const Extended = union(enum) { options: Todo, remove_dir: Todo, run: Run, - top_level: Todo, + top_level: TopLevel, translate_c: Todo, update_source_files: Todo, write_file: Todo, @@ -119,6 +119,20 @@ pub const Extended = union(enum) { std.debug.panic("TODO implement another step type (index {d})", .{step_index}); } }; + + pub const TopLevel = struct { + pub fn make( + top_level: *TopLevel, + step_index: Configuration.Step.Index, + maker: *Maker, + progress_node: std.Progress.Node, + ) Step.ExtendedMakeError!void { + _ = top_level; + _ = step_index; + _ = maker; + _ = progress_node; + } + }; }; pub const State = enum {