diff --git a/src/cmd/init.zig b/src/cmd/init.zig index 6e374f02c1bfe0f82c5c36cf64c88adf521e3db6..830dba1da8d7d204fd6809c2cfcdddd614d23a39 100644 --- a/src/cmd/init.zig +++ b/src/cmd/init.zig @@ -193,11 +193,15 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { \\ const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; \\ \\ const exe = b.addExecutable(.{ + \\ + ); + try w.print(" .name = \"{s}\",\n", .{name}); + try w.writeAll( \\ .root_source_file = b.path("main.zig"), \\ .target = target, \\ .optimize = mode, \\ }); - \\ deps.addAllTo(tests); + \\ deps.addAllTo(exe); \\ b.installArtifact(exe); \\ \\ const run_step = b.step("run", "Run the app");