File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 {
3028fn 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 });
You can’t perform that action at this time.
0 commit comments