aboutsummaryrefslogtreecommitdiffstats
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 18f0b6f..b9c837d 100644
--- a/build.zig
+++ b/build.zig
@@ -13,7 +13,7 @@ pub fn build(b: *std.build.Builder) !void {
13 13
14 const version = "0.1.0-dev"; 14 const version = "0.1.0-dev";
15 15
16 const lib = b.addStaticLibrary("zats", "src/nkeys.zig"); 16 const lib = b.addStaticLibrary("nkeys", "src/nkeys.zig");
17 lib.setBuildMode(mode); 17 lib.setBuildMode(mode);
18 lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 18 lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
19 lib.install(); 19 lib.install();
@@ -30,7 +30,7 @@ pub fn build(b: *std.build.Builder) !void {
30 znk_tests.addPackagePath("nkeys", "src/nkeys.zig"); 30 znk_tests.addPackagePath("nkeys", "src/nkeys.zig");
31 znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 31 znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
32 32
33 const znk_test_step = b.step("znk-test", "Run znk tests"); 33 const znk_test_step = b.step("test-znk", "Run znk tests");
34 znk_test_step.dependOn(&znk_tests.step); 34 znk_test_step.dependOn(&znk_tests.step);
35 35
36 const znk = b.addExecutable("znk", "tool/znk.zig"); 36 const znk = b.addExecutable("znk", "tool/znk.zig");
@@ -50,6 +50,6 @@ pub fn build(b: *std.build.Builder) !void {
50 znk_run_cmd.addArgs(args); 50 znk_run_cmd.addArgs(args);
51 } 51 }
52 52
53 const znk_run_step = b.step("znk-run", "Run znk"); 53 const znk_run_step = b.step("run-znk", "Run znk");
54 znk_run_step.dependOn(&znk_run_cmd.step); 54 znk_run_step.dependOn(&znk_run_cmd.step);
55} 55}