From 0d1b71a021a9fbd2de2e034b926505c8ec18872d Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sun, 4 Oct 2026 10:48:44 -0700 Subject: [PATCH] include build in build.zig.zon --- build.zig | 8 ++++---- build.zig.zon | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 523ae21..b37f095 100644 --- a/build.zig +++ b/build.zig @@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); // The public module. Consumers `@import("biff8")`. - const mod = b.addModule("biff8", .{ + const module = b.addModule("biff8", .{ .root_source_file = b.path("src/root.zig"), .target = target, .optimize = optimize, @@ -15,7 +15,7 @@ pub fn build(b: *std.Build) void { // Tests: one binary rooted at src/root.zig. `refAllDecls` in // root.zig's test block pulls in every file's tests through the // import graph. - const tests = b.addTest(.{ .root_module = mod }); + const tests = b.addTest(.{ .root_module = module }); const test_step = b.step("test", "Run all tests"); test_step.dependOn(&b.addRunArtifact(tests).step); @@ -37,11 +37,11 @@ pub fn build(b: *std.Build) void { // Coverage: `zig build coverage` (kcov, Linux x86_64/aarch64 only) { var cov = Coverage.init(b); - const cov_mod = b.createModule(.{ + const coverage_module = b.createModule(.{ .root_source_file = b.path("src/root.zig"), .target = target, .optimize = optimize, }); - _ = cov.addModule(cov_mod, "biff8"); + _ = cov.addModule(coverage_module, "biff8"); } } diff --git a/build.zig.zon b/build.zig.zon index f1c01a2..93ecd64 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -7,6 +7,7 @@ .paths = .{ "build.zig", "build.zig.zon", + "build", "src", "LICENSE", "README.md",