Skip to content

Commit 4251fe4

Browse files
committed
chore: update for zig 0.15.0-dev.1092+d772c0627
1 parent 837c1b3 commit 4251fe4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

build.zig

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ pub fn build(b: *std.Build) void {
1414
);
1515

1616
const lib_unit_tests = b.addTest(.{
17-
.root_source_file = b.path("src/root.zig"),
18-
.target = target,
19-
.optimize = optimize,
17+
.root_module = mod,
2018
});
2119

2220
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
@@ -26,11 +24,15 @@ pub fn build(b: *std.Build) void {
2624

2725
const exe = b.addExecutable(.{
2826
.name = "fuzzig",
29-
.root_source_file = b.path("src/main.zig"),
30-
.target = target,
31-
.optimize = optimize,
27+
.root_module = b.createModule(.{
28+
.root_source_file = b.path("src/main.zig"),
29+
.target = target,
30+
.optimize = optimize,
31+
.imports = &.{
32+
.{ .name = "fuzzig", .module = mod },
33+
},
34+
}),
3235
});
33-
exe.root_module.addImport("fuzzig", mod);
3436

3537
const run_cmd = b.addRunArtifact(exe);
3638
const benchmark_step = b.step("benchmark", "Run benchmarks.");

0 commit comments

Comments
 (0)