fix: upstream build API changes
This commit is contained in:
parent
26628bb9c3
commit
fa98f472f8
14
build.zig
14
build.zig
|
@ -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);
|
||||
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue