~alva/zig-bare

7fc8f49fbca104c10f7aa31d7c14fae5bcd408f8 — ugla a month ago 572b237 trunk
Zig build system updates
1 files changed, 6 insertions(+), 3 deletions(-)

M build.zig
M build.zig => build.zig +6 -3
@@ 17,12 17,15 @@ pub fn build(b: *Builder) !void {
        .root_source_file = .{ .path = "src" ++ sep ++ "bare.zig" },
    });

    const bench = b.addExecutable(.{ .name = program_name ++ "-benchmark" });
    const bench = b.addExecutable(.{
        .name = program_name ++ "-benchmark",
        .root_source_file = .{ .path = "src" ++ sep ++ "benchmark.zig" },
    });
    const @"test" = b.addTest(.{ .root_source_file = .{ .path = "src" ++ sep ++ "test.zig" } });

    lib.install();
    b.installArtifact(lib);

    const bench_run_cmd = bench.run();
    const bench_run_cmd = b.addRunArtifact(bench);
    const bench_run_step = b.step("bench", "Run " ++ program_name ++ " benchmarks");

    bench_run_step.dependOn(&bench_run_cmd.step);