| ... | @@ -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"); |