Skip to content

Commit dbe9ac0

Browse files
committed
update to use b.path
1 parent 8c3facc commit dbe9ac0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.zig

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ pub fn build(b: *std.Build) void {
1111
//----------------------------------------
1212
// define ZTS module
1313
const datastor_module = b.addModule("zts", .{
14-
.root_source_file = .{ .path = "src/zts.zig" },
14+
.root_source_file = b.path("src/zts.zig"),
1515
});
1616

1717
//----------------------------------------
1818
// benchmark demo app
1919
const exe = b.addExecutable(.{
2020
.name = "ZTS demo app",
21-
.root_source_file = .{ .path = "src/bench.zig" },
21+
.root_source_file = b.path("src/bench.zig"),
2222
.target = target,
2323
.optimize = optimize,
2424
});
@@ -37,7 +37,7 @@ pub fn build(b: *std.Build) void {
3737
// unit tests
3838
const test_step = b.step("test", "Run unit tests (redirect stdout to /dev/null)");
3939
const unit_tests = b.addTest(.{
40-
.root_source_file = .{ .path = "src/zts.zig" },
40+
.root_source_file = b.path("src/zts.zig"),
4141
.target = target,
4242
});
4343

0 commit comments

Comments
 (0)