fix: upstream build API changes

This commit is contained in:
LordMZTE 2024-01-07 15:47:30 +01:00
parent 26628bb9c3
commit fa98f472f8
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 8 additions and 10 deletions

View file

@ -7,13 +7,11 @@ pub fn build(b: *std.Build) void {
const statspatch_dep = b.dependency("statspatch", .{ .target = target, .optimize = optimize });
_ = b.addModule("zenolith", .{
.source_file = .{ .path = "src/main.zig" },
.dependencies = &.{
.{
.name = "statspatch",
.module = statspatch_dep.module("statspatch"),
},
},
.root_source_file = .{ .path = "src/main.zig" },
.imports = &.{.{
.name = "statspatch",
.module = statspatch_dep.module("statspatch"),
}},
});
const main_tests = b.addTest(.{
@ -22,7 +20,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
main_tests.addModule("statspatch", statspatch_dep.module("statspatch"));
main_tests.root_module.addImport("statspatch", statspatch_dep.module("statspatch"));
const run_main_tests = b.addRunArtifact(main_tests);

View file

@ -9,8 +9,8 @@
.dependencies = .{
.statspatch = .{
.url = "git+https://git.mzte.de/LordMZTE/statspatch.git#231e3ce529efa9a084fb095ff570dfd985ca9a7d",
.hash = "1220685f1c039a53076ef169ef2e2959aeb054c86d4eda5aac736885daa0bf2f6910",
.url = "git+https://git.mzte.de/LordMZTE/statspatch.git#9f6c8648e9901646b440b525201b77dbabc04bba",
.hash = "122093d8dbfbd8f5e28734da73d9e5be1d6b2d41cf234e07daf2dfd7abf7ba65d976",
},
},
}