From 781d9716c63026f825f7a2d803abd8278c7a6ae8 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Fri, 21 May 2021 09:31:18 +0200 Subject: Fix up build.zig --- build.zig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 3053d64..436cdf9 100644 --- a/build.zig +++ b/build.zig @@ -13,21 +13,21 @@ pub fn build(b: *std.build.Builder) !void { const version = "0.1.0-dev"; - const lib = b.addStaticLibrary("zats", "src/main.zig"); + const lib = b.addStaticLibrary("zats", "src/nkeys.zig"); lib.setBuildMode(mode); lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); lib.install(); - var main_tests = b.addTest("src/nkeys.zig"); - main_tests.setBuildMode(mode); - main_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); + var lib_tests = b.addTest("src/nkeys.zig"); + lib_tests.setBuildMode(mode); + lib_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); var znk_tests = b.addTest("src/znk.zig"); - main_tests.setBuildMode(mode); - main_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); + znk_tests.setBuildMode(mode); + znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); const test_step = b.step("test", "Run library tests"); - test_step.dependOn(&main_tests.step); + test_step.dependOn(&lib_tests.step); const znk_test_step = b.step("znk-test", "Run znk tests"); znk_test_step.dependOn(&znk_tests.step); -- cgit v1.2.3