authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-28 13:25:10 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-28 13:25:10 -07:00
logcedfb308d15faefbe034d2b4cd88438674e4c2d3
treef0b10789c731e9ee8f97e1e0d535480969af565f
parent4639401dddee0611f4bcd9e944e2f50fffeea10d
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

cmd/init: fix for exe option


1 files changed, 5 insertions(+), 1 deletions(-)

src/cmd/init.zig+5-1
...@@ -193,11 +193,15 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void {...@@ -193,11 +193,15 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
193 \\ const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;193 \\ const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
194 \\194 \\
195 \\ const exe = b.addExecutable(.{195 \\ const exe = b.addExecutable(.{
196 \\
197 );
198 try w.print(" .name = \"{s}\",\n", .{name});
199 try w.writeAll(
196 \\ .root_source_file = b.path("main.zig"),200 \\ .root_source_file = b.path("main.zig"),
197 \\ .target = target,201 \\ .target = target,
198 \\ .optimize = mode,202 \\ .optimize = mode,
199 \\ });203 \\ });
200 \\ deps.addAllTo(tests);204 \\ deps.addAllTo(exe);
201 \\ b.installArtifact(exe);205 \\ b.installArtifact(exe);
202 \\206 \\
203 \\ const run_step = b.step("run", "Run the app");207 \\ const run_step = b.step("run", "Run the app");