authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-03-17 17:10:00-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:34-07:00
log1a63d26836f5c87e45280772b8ba9c822ba75b78
tree97b8d9c1f18394f53fbea4759c7a0ed6aa542405
parentaa0652ff8dc9add09567d69a92ddaff5ad386919

maker: implement TopLevel step


2 files changed, 16 insertions(+), 1 deletions(-)

BRANCH_TODO+1
...@@ -10,6 +10,7 @@...@@ -10,6 +10,7 @@
10* test a bunch of third party projects / help people migrate10* test a bunch of third party projects / help people migrate
11* refactor with DefaultingEnum11* refactor with DefaultingEnum
12* inspect b4ffb402c082605c4b324e88120306fc8fb3cf32 diff and apply changes as needed (merge conflict)12* inspect b4ffb402c082605c4b324e88120306fc8fb3cf32 diff and apply changes as needed (merge conflict)
13* https://codeberg.org/ziglang/zig/issues/31397
1314
14## Followup Issues15## Followup Issues
15* link_eh_frame_hdr should be DefaultingBool16* link_eh_frame_hdr should be DefaultingBool
lib/compiler/Maker/Step.zig+15-1
...@@ -79,7 +79,7 @@ pub const Extended = union(enum) {...@@ -79,7 +79,7 @@ pub const Extended = union(enum) {
79 options: Todo,79 options: Todo,
80 remove_dir: Todo,80 remove_dir: Todo,
81 run: Run,81 run: Run,
82 top_level: Todo,82 top_level: TopLevel,
83 translate_c: Todo,83 translate_c: Todo,
84 update_source_files: Todo,84 update_source_files: Todo,
85 write_file: Todo,85 write_file: Todo,
...@@ -119,6 +119,20 @@ pub const Extended = union(enum) {...@@ -119,6 +119,20 @@ pub const Extended = union(enum) {
119 std.debug.panic("TODO implement another step type (index {d})", .{step_index});119 std.debug.panic("TODO implement another step type (index {d})", .{step_index});
120 }120 }
121 };121 };
122
123 pub const TopLevel = struct {
124 pub fn make(
125 top_level: *TopLevel,
126 step_index: Configuration.Step.Index,
127 maker: *Maker,
128 progress_node: std.Progress.Node,
129 ) Step.ExtendedMakeError!void {
130 _ = top_level;
131 _ = step_index;
132 _ = maker;
133 _ = progress_node;
134 }
135 };
122};136};
123137
124pub const State = enum {138pub const State = enum {