From 1a63d26836f5c87e45280772b8ba9c822ba75b78 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 17 Mar 2026 17:10:00 -0700 Subject: [PATCH] maker: implement TopLevel step --- BRANCH_TODO | 1 + lib/compiler/Maker/Step.zig | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/BRANCH_TODO b/BRANCH_TODO index b55cf45b5b16d29d35f005e860f8893058783227..5ddc34a0996823b21a2c81e92ee6d834eca7577a 100644 --- 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 index f73b6b7e5b52ca5cd8284d6515ba1c9f614756f8..c1c9c1f2cc3db29fc8685b806f90b1f56353c7dd 100644 --- 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 { -- 2.54.0