build: using b.path

This commit is contained in:
Marcius 2024-06-22 21:46:00 +01:00
parent 2194b84b4a
commit 454aea5eba
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
/zig-*
.zig-cache
/.zig-cache

View file

@ -16,7 +16,7 @@ pub fn build(b: *std.Build) !void {
}).module("zenolith");
const mod = b.addModule("zenolith-sdl2", .{
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "src/main.zig" } },
.root_source_file = b.path("src/main.zig"),
.imports = &.{.{ .name = "zenolith", .module = zenolith_mod }},
.target = target,
.optimize = optimize,