build-system: Replace deprecated usages of root_source_file on addTests

This commit is contained in:
Jayson Reis
2025-07-22 22:44:23 +02:00
parent 49cf8d80a6
commit d5995ac45c
10 changed files with 51 additions and 30 deletions

View File

@@ -43,9 +43,11 @@ pub fn build(b: *std.Build) !void {
const test_exe = b.addTest(.{
.name = "test",
.root_source_file = b.path("main.zig"),
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.root_source_file = b.path("main.zig"),
.target = target,
.optimize = optimize,
}),
});
{