diff --git a/zig-code/build-system/unit-testing/build.zig b/zig-code/build-system/unit-testing/build.zig index 238ed12fd..b97db6d08 100644 --- a/zig-code/build-system/unit-testing/build.zig +++ b/zig-code/build-system/unit-testing/build.zig @@ -17,8 +17,10 @@ pub fn build(b: *std.Build) void { for (test_targets) |target| { const unit_tests = b.addTest(.{ - .root_source_file = b.path("main.zig"), - .target = b.resolveTargetQuery(target), + .root_module = b.createModule(.{ + .root_source_file = b.path("main.zig"), + .target = b.resolveTargetQuery(target), + }), }); const run_unit_tests = b.addRunArtifact(unit_tests);