From 013c692bc38ed4cfe93429477ba980de8d8ecd0a Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Fri, 31 Oct 2025 14:54:48 -0400 Subject: [PATCH] upgrade to 0.15.2 --- build.zig | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/build.zig b/build.zig index 46ace4b..6b6f48f 100644 --- a/build.zig +++ b/build.zig @@ -21,15 +21,13 @@ pub fn build(b: *Builder) void { .target = target, .optimize = optimize, }); - _ = mod; - const lib = b.addStaticLibrary(.{ + const lib = b.addLibrary(.{ .name = "snappyz", // In this case the main source file is merely a path, however, in more // complicated build scripts, this could be a generated file. - .root_source_file = .{ .cwd_relative = "snappy.zig" }, - .optimize = optimize, - .target = target, + .root_module = mod, + .linkage = .static, }); // This declares intent for the library to be installed into the standard @@ -40,9 +38,7 @@ pub fn build(b: *Builder) void { // Creates a step for unit testing. This only builds the test executable // but does not run it. const tests = b.addTest(.{ - .root_source_file = .{ .cwd_relative = "snappy.zig" }, - .optimize = optimize, - .target = target, + .root_module = mod, }); const run_tests = b.addRunArtifact(tests);