Skip to content

Commit d853aa9

Browse files
bfredlnatecraddock
authored andcommitted
update outdated LazyPath constructors
1 parent 486f51d commit d853aa9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn build(b: *Build) void {
2929

3030
// Zig module
3131
const ziglua = b.addModule("ziglua", .{
32-
.root_source_file = .{ .path = "src/lib.zig" },
32+
.root_source_file = b.path("src/lib.zig"),
3333
});
3434

3535
// Expose build configuration to the ziglua module
@@ -70,7 +70,7 @@ pub fn build(b: *Build) void {
7070

7171
// Tests
7272
const tests = b.addTest(.{
73-
.root_source_file = .{ .path = "src/tests.zig" },
73+
.root_source_file = b.path("src/tests.zig"),
7474
.target = target,
7575
.optimize = optimize,
7676
});
@@ -93,7 +93,7 @@ pub fn build(b: *Build) void {
9393
for (examples) |example| {
9494
const exe = b.addExecutable(.{
9595
.name = example[0],
96-
.root_source_file = .{ .path = example[1] },
96+
.root_source_file = b.path(example[1]),
9797
.target = target,
9898
.optimize = optimize,
9999
});
@@ -113,7 +113,7 @@ pub fn build(b: *Build) void {
113113

114114
const docs = b.addStaticLibrary(.{
115115
.name = "ziglua",
116-
.root_source_file = .{ .path = "src/lib.zig" },
116+
.root_source_file = b.path("src/lib.zig"),
117117
.target = target,
118118
.optimize = optimize,
119119
});
@@ -223,7 +223,7 @@ fn buildLuau(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Opti
223223
.files = &luau_source_files,
224224
.flags = &flags,
225225
});
226-
lib.addCSourceFile(.{ .file = .{ .path = "src/luau.cpp" }, .flags = &flags });
226+
lib.addCSourceFile(.{ .file = b.path("src/luau.cpp"), .flags = &flags });
227227
lib.linkLibCpp();
228228

229229
// It may not be as likely that other software links against Luau, but might as well expose these anyway

0 commit comments

Comments
 (0)