diff options
author | Rutger Broekhoff | 2021-05-25 23:01:45 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2021-05-25 23:01:45 +0200 |
commit | b52b1caf6d668340ecd47baf7b994c9f090484fc (patch) | |
tree | ec4794b7bed864e87d6544a593271149400cb3cd /build.zig | |
parent | 7621f1f91162e18a14562b52e082da0d8a324885 (diff) | |
download | zig-nkeys-b52b1caf6d668340ecd47baf7b994c9f090484fc.tar.gz zig-nkeys-b52b1caf6d668340ecd47baf7b994c9f090484fc.zip |
Simplify build.zig
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
15 | var znk_tests = b.addTest("tool/znk.zig"); | 15 | var znk_tests = b.addTest("tool/znk.zig"); |
16 | znk_tests.setBuildMode(mode); | 16 | znk_tests.setBuildMode(mode); |
17 | znk_tests.addPackagePath("nkeys", "src/lib.zig"); | 17 | znk_tests.addPackagePath("nkeys", "src/lib.zig"); |
18 | znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, znk_version)); | 18 | znk_tests.addBuildOption([]const u8, "version", znk_version); |
19 | 19 | ||
20 | const znk_test_step = b.step("test-znk", "Run znk tests"); | 20 | const znk_test_step = b.step("test-znk", "Run znk tests"); |
21 | znk_test_step.dependOn(&znk_tests.step); | 21 | znk_test_step.dependOn(&znk_tests.step); |
@@ -24,7 +24,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
24 | znk.setBuildMode(mode); | 24 | znk.setBuildMode(mode); |
25 | znk.setTarget(target); | 25 | znk.setTarget(target); |
26 | znk.addPackagePath("nkeys", "src/lib.zig"); | 26 | znk.addPackagePath("nkeys", "src/lib.zig"); |
27 | znk.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, znk_version)); | 27 | znk.addBuildOption([]const u8, "version", znk_version); |
28 | 28 | ||
29 | const znk_install = b.addInstallArtifact(znk); | 29 | const znk_install = b.addInstallArtifact(znk); |
30 | 30 | ||