@@ -29,7 +29,7 @@ pub fn build(b: *Build) void {
29
29
30
30
// Zig module
31
31
const ziglua = b .addModule ("ziglua" , .{
32
- .root_source_file = .{ . path = "src/lib.zig" } ,
32
+ .root_source_file = b . path ( "src/lib.zig" ) ,
33
33
});
34
34
35
35
// Expose build configuration to the ziglua module
@@ -70,7 +70,7 @@ pub fn build(b: *Build) void {
70
70
71
71
// Tests
72
72
const tests = b .addTest (.{
73
- .root_source_file = .{ . path = "src/tests.zig" } ,
73
+ .root_source_file = b . path ( "src/tests.zig" ) ,
74
74
.target = target ,
75
75
.optimize = optimize ,
76
76
});
@@ -93,7 +93,7 @@ pub fn build(b: *Build) void {
93
93
for (examples ) | example | {
94
94
const exe = b .addExecutable (.{
95
95
.name = example [0 ],
96
- .root_source_file = .{ . path = example [1 ] } ,
96
+ .root_source_file = b . path ( example [1 ]) ,
97
97
.target = target ,
98
98
.optimize = optimize ,
99
99
});
@@ -113,7 +113,7 @@ pub fn build(b: *Build) void {
113
113
114
114
const docs = b .addStaticLibrary (.{
115
115
.name = "ziglua" ,
116
- .root_source_file = .{ . path = "src/lib.zig" } ,
116
+ .root_source_file = b . path ( "src/lib.zig" ) ,
117
117
.target = target ,
118
118
.optimize = optimize ,
119
119
});
@@ -223,7 +223,7 @@ fn buildLuau(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Opti
223
223
.files = & luau_source_files ,
224
224
.flags = & flags ,
225
225
});
226
- lib .addCSourceFile (.{ .file = .{ . path = "src/luau.cpp" } , .flags = & flags });
226
+ lib .addCSourceFile (.{ .file = b . path ( "src/luau.cpp" ) , .flags = & flags });
227
227
lib .linkLibCpp ();
228
228
229
229
// It may not be as likely that other software links against Luau, but might as well expose these anyway
0 commit comments