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",