|
|
@ -25,12 +25,12 @@ pub fn build(b: *Builder) void {
|
|
|
|
exe.linkSystemLibrary("c");
|
|
|
|
exe.linkSystemLibrary("c");
|
|
|
|
|
|
|
|
|
|
|
|
const run_cmd = exe.run();
|
|
|
|
const run_cmd = exe.run();
|
|
|
|
const exe_step = b.step(name, b.fmt("run {}.zig", .{name}));
|
|
|
|
const exe_step = b.step(name, b.fmt("run {s}.zig", .{name}));
|
|
|
|
exe_step.dependOn(&run_cmd.step);
|
|
|
|
exe_step.dependOn(&run_cmd.step);
|
|
|
|
|
|
|
|
|
|
|
|
// first element in the list is added as "run" so "zig build run" works
|
|
|
|
// first element in the list is added as "run" so "zig build run" works
|
|
|
|
if (i == 0) {
|
|
|
|
if (i == 0) {
|
|
|
|
const run_exe_step = b.step("run", b.fmt("run {}.zig", .{name}));
|
|
|
|
const run_exe_step = b.step("run", b.fmt("run {s}.zig", .{name}));
|
|
|
|
run_exe_step.dependOn(&run_cmd.step);
|
|
|
|
run_exe_step.dependOn(&run_cmd.step);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|