authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2024-04-14 17:14:00+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-04-15 16:55:04+03:00
logd483ba725028375cb1e290f5196daed2929e6c6c
tree86e2446979dcdebbc7da231f0844b25a1976047d
parentd23a8e83d43be1f209e12744925852dbd1690163

zig init: Replace deprecated LazyPath.path with Build.path()


1 files changed, 4 insertions(+), 4 deletions(-)

lib/init/build.zig+4-4
......@@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void {
1919 .name = "$",
2020 // In this case the main source file is merely a path, however, in more
2121 // complicated build scripts, this could be a generated file.
22 .root_source_file = .{ .path = "src/root.zig" },
22 .root_source_file = b.path("src/root.zig"),
2323 .target = target,
2424 .optimize = optimize,
2525 });
......@@ -31,7 +31,7 @@ pub fn build(b: *std.Build) void {
3131
3232 const exe = b.addExecutable(.{
3333 .name = "$",
34 .root_source_file = .{ .path = "src/main.zig" },
34 .root_source_file = b.path("src/main.zig"),
3535 .target = target,
3636 .optimize = optimize,
3737 });
......@@ -67,7 +67,7 @@ pub fn build(b: *std.Build) void {
6767 // Creates a step for unit testing. This only builds the test executable
6868 // but does not run it.
6969 const lib_unit_tests = b.addTest(.{
70 .root_source_file = .{ .path = "src/root.zig" },
70 .root_source_file = b.path("src/root.zig"),
7171 .target = target,
7272 .optimize = optimize,
7373 });
......@@ -75,7 +75,7 @@ pub fn build(b: *std.Build) void {
7575 const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
7676
7777 const exe_unit_tests = b.addTest(.{
78 .root_source_file = .{ .path = "src/main.zig" },
78 .root_source_file = b.path("src/main.zig"),
7979 .target = target,
8080 .optimize = optimize,
8181 });