File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const examples = .{
9
9
"dry-run" ,
10
10
};
11
11
12
- pub fn build (b : * std.build.Builder ) void {
12
+ pub fn build (b : * std.Build ) void {
13
13
const target = b .standardTargetOptions (.{});
14
14
const optimize = b .standardOptimizeOption (.{});
15
15
@@ -21,14 +21,14 @@ pub fn build(b: *std.build.Builder) void {
21
21
22
22
const exe = b .addExecutable (.{
23
23
.name = exe_name ,
24
- .root_source_file = .{ . path = example_path } ,
24
+ .root_source_file = b . path ( example_path ) ,
25
25
.target = target ,
26
26
.optimize = optimize ,
27
27
});
28
28
const mod = b .addModule ("dotenv" , .{
29
- .source_file = .{ . path = "../src/lib.zig" } ,
29
+ .root_source_file = b . path ( "../src/lib.zig" ) ,
30
30
});
31
- exe .addModule ("dotenv" , mod );
31
+ exe .root_module . addImport ("dotenv" , mod );
32
32
exe .linkSystemLibrary ("c" );
33
33
34
34
b .installArtifact (exe );
You can’t perform that action at this time.
0 commit comments