-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.zig
More file actions
31 lines (25 loc) · 730 Bytes
/
Copy pathbuild.zig
File metadata and controls
31 lines (25 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const Build: type = @import("std").Build;
pub fn build(b: *Build) void {
const exe_mod = b.createModule(
.{
.root_source_file = b.path("src/main.zig"),
.target = b.standardTargetOptions(.{}),
.optimize = b.standardOptimizeOption(.{}),
},
);
const exe = b.addExecutable(
.{
.name = "zig-read-write-fs",
.root_module = exe_mod,
},
);
b.installArtifact(exe);
const exe_tests = b.addTest(
.{
.root_module = exe_mod,
},
);
const run_exe_tests = b.addRunArtifact(exe_tests);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_exe_tests.step);
}