1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const target = b.standardTargetOptions(.{});
5 const optimize = b.standardOptimizeOption(.{});
6
7 const mod = b.addModule("zat", .{
8 .root_source_file = b.path("src/root.zig"),
9 .target = target,
10 .optimize = optimize,
11 });
12
13 const tests = b.addTest(.{ .root_module = mod });
14 const run_tests = b.addRunArtifact(tests);
15
16 const test_step = b.step("test", "run unit tests");
17 test_step.dependOn(&run_tests.step);
18}