diff --git a/lib/zmath/build.zig b/lib/zmath/build.zig index c858efc..772156b 100644 --- a/lib/zmath/build.zig +++ b/lib/zmath/build.zig @@ -14,10 +14,12 @@ pub fn build(b: *std.Build) void { const test_step = b.step("test", "runs tests for zmath"); const tests = b.addTest(.{ - .target = target, - .optimize = optimize, - .root_source_file = b.path("zmath.zig"), - .link_libc = true, + .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("zmath.zig"), + .link_libc = true, + }), }); tests.root_module.addImport("zmath", mod);