@@ -4,11 +4,11 @@ pub fn build(b: *std.Build) void {
44 const target = b .standardTargetOptions (.{});
55 const optimize = b .standardOptimizeOption (.{});
66
7- _ = b .addModule ("chroma" , .{ .root_source_file = .{ .path = "src/lib.zig" } });
7+ _ = b .addModule ("chroma" , .{ .root_source_file = .{ .src_path = .{ . owner = b , . sub_path = "src/lib.zig" } } });
88
99 const lib = b .addStaticLibrary (.{
1010 .name = "chroma" ,
11- .root_source_file = .{ .path = "src/lib.zig" },
11+ .root_source_file = .{ .src_path = .{ . owner = b , . sub_path = "src/lib.zig" } },
1212 .target = target ,
1313 .optimize = optimize ,
1414 });
@@ -17,7 +17,7 @@ pub fn build(b: *std.Build) void {
1717
1818 const exe = b .addExecutable (.{
1919 .name = "chroma" ,
20- .root_source_file = .{ .path = "src/main.zig" },
20+ .root_source_file = .{ .src_path = .{ . owner = b , . sub_path = "src/main.zig" } },
2121 .target = target ,
2222 .optimize = optimize ,
2323 });
@@ -36,15 +36,15 @@ pub fn build(b: *std.Build) void {
3636 run_step .dependOn (& run_cmd .step );
3737
3838 const lib_unit_tests = b .addTest (.{
39- .root_source_file = .{ .path = "src/lib.zig" },
39+ .root_source_file = .{ .src_path = .{ . owner = b , . sub_path = "src/lib.zig" } },
4040 .target = target ,
4141 .optimize = optimize ,
4242 });
4343
4444 const run_lib_unit_tests = b .addRunArtifact (lib_unit_tests );
4545
4646 const exe_unit_tests = b .addTest (.{
47- .root_source_file = .{ .path = "src/main.zig" },
47+ .root_source_file = .{ .src_path = .{ . owner = b , . sub_path = "src/main.zig" } },
4848 .target = target ,
4949 .optimize = optimize ,
5050 });
0 commit comments