File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,10 @@ const quickphf_dep = b.dependency("quickphf", .{
18
18
.optimize = optimize,
19
19
});
20
20
const quickphf_mod = quickphf_dep.module("quickphf");
21
- <compile>.root_module.addImport("quickphf", quickphf_mod);
21
+
22
+ ...
23
+ .imports = &.{
24
+ .{ .name = "quickphf", .module = quickphf_mod },
25
+ },
26
+ ...
22
27
```
Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ pub fn build(b: *std.Build) !void {
45
45
.target = target ,
46
46
.optimize = optimize ,
47
47
.root_source_file = b .path (EXAMPLE_DIR ++ "main.zig" ),
48
+ .imports = &.{
49
+ .{ .name = "quickphf" , .module = root_mod },
50
+ },
48
51
}),
49
52
});
50
- example_exe .root_module .addImport ("quickphf" , root_mod );
51
53
52
54
const example_exe_run = b .addRunArtifact (example_exe );
53
55
example_step .dependOn (& example_exe_run .step );
You can’t perform that action at this time.
0 commit comments