build: port to zig 0.13.0

This commit is contained in:
Marcius 2024-06-22 21:57:59 +01:00
parent 4e67de14b3
commit b0ecde1e15
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

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

View file

@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
const statspatch_dep = b.dependency("statspatch", .{ .target = target, .optimize = optimize });
_ = b.addModule("zenolith", .{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.imports = &.{.{
.name = "statspatch",
.module = statspatch_dep.module("statspatch"),
@ -15,7 +15,7 @@ pub fn build(b: *std.Build) void {
});
const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});