We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4639401 commit cedfb30Copy full SHA for cedfb30
1 file changed
src/cmd/init.zig
@@ -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;
194
\\
195
\\ const exe = b.addExecutable(.{
196
+ \\
197
+ );
198
+ try w.print(" .name = \"{s}\",\n", .{name});
199
+ try w.writeAll(
200
\\ .root_source_file = b.path("main.zig"),
201
\\ .target = target,
202
\\ .optimize = mode,
203
\\ });
- \\ deps.addAllTo(tests);
204
+ \\ deps.addAllTo(exe);
205
\\ b.installArtifact(exe);
206
207
\\ const run_step = b.step("run", "Run the app");
0 commit comments