1
0
Fork 0

build: using b.path

This commit is contained in:
mcmrcs@proton.me 2024-06-22 21:52:34 +01:00
parent df98a2cfeb
commit 098abc3f70

View file

@ -45,7 +45,7 @@ pub fn build(b: *std.Build) !void {
}
const main_tests = b.addTest(.{
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "src/main.zig" } },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
@ -58,7 +58,7 @@ pub fn build(b: *std.Build) !void {
const example_exe = b.addExecutable(.{
.name = "zenolith-sdl2-example",
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "example/main.zig" } },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});