mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 16:43:07 +00:00
16 lines
380 B
Zig
16 lines
380 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const main = b.addExecutable(.{
|
|
.name = "main",
|
|
.root_source_file = .{ .path = "main.zig" },
|
|
.optimize = b.standardOptimizeOption(.{}),
|
|
});
|
|
|
|
const run = main.run();
|
|
run.clearEnvironment();
|
|
|
|
const test_step = b.step("test", "Test it");
|
|
test_step.dependOn(&run.step);
|
|
}
|