Skip to content

Commit e534a32

Browse files
authored
[Nothing]: Update build.zig (#5)
1 parent ff8bb0a commit e534a32

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

build_12.zig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ pub fn build(b: *std.Build) void {
88
const optimize = b.standardOptimizeOption(.{});
99

1010
const msgpack = b.addModule("msgpack", .{
11-
.root_source_file = .{
12-
.path = "src/msgpack.zig",
13-
},
11+
.root_source_file = b.path("src/msgpack.zig"),
1412
});
1513

1614
const test_step = b.step("test", "Run unit tests");
1715

1816
const msgpack_unit_tests = b.addTest(.{
19-
.root_source_file = .{ .path = "src/msgpack_unit_test.zig" },
17+
.root_source_file = b.path("src/msgpack_unit_test.zig"),
2018
.target = target,
2119
.optimize = optimize,
2220
});

build_13.zig

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ pub fn build(b: *std.Build) void {
88
const optimize = b.standardOptimizeOption(.{});
99

1010
const msgpack = b.addModule("msgpack", .{
11-
.root_source_file = .{
12-
.path = "src/msgpack.zig",
13-
},
11+
.root_source_file = b.path("src/msgpack.zig"),
1412
});
1513

1614
generateDocs(b, optimize, target);
1715

1816
const test_step = b.step("test", "Run unit tests");
1917

2018
const msgpack_unit_tests = b.addTest(.{
21-
.root_source_file = .{ .path = "src/msgpack_unit_test.zig" },
19+
.root_source_file = b.path("src/msgpack_unit_test.zig"),
2220
.target = target,
2321
.optimize = optimize,
2422
});
@@ -30,9 +28,7 @@ pub fn build(b: *std.Build) void {
3028
fn generateDocs(b: *Build, optimize: OptimizeMode, target: Build.ResolvedTarget) void {
3129
const lib = b.addObject(.{
3230
.name = "zig-msgpack",
33-
.root_source_file = .{
34-
.path = "src/msgpack.zig",
35-
},
31+
.root_source_file = b.path("src/msgpack.zig"),
3632
.target = target,
3733
.optimize = optimize,
3834
});

0 commit comments

Comments
 (0)