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

@@ -51,9 +51,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,
}),
});
if (target.result.os.tag.isDarwin()) {
try apple_sdk.addPaths(b, test_exe);