summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2023-03-01 15:48:59 +0100
committerGravatar Jimmi Holst Christensen2023-03-01 15:48:59 +0100
commitb8b2cf891da782eb00433ccc5505c1fa5e4ed81a (patch)
treecf9519e08a3932f08c0fe85e725af68172331c9e
parentDelete dependabot.yml. We don't have dependecies (diff)
downloadzig-clap-b8b2cf891da782eb00433ccc5505c1fa5e4ed81a.tar.gz
zig-clap-b8b2cf891da782eb00433ccc5505c1fa5e4ed81a.tar.xz
zig-clap-b8b2cf891da782eb00433ccc5505c1fa5e4ed81a.zip
Mode addModule to the top
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 13c7c4b..7598ccb 100644
--- a/build.zig
+++ b/build.zig
@@ -1,11 +1,11 @@
1const std = @import("std"); 1const std = @import("std");
2 2
3pub fn build(b: *std.Build) void { 3pub fn build(b: *std.Build) void {
4 b.addModule(.{ .name = "clap", .source_file = .{ .path = "clap.zig" } });
5
4 const optimize = b.standardOptimizeOption(.{}); 6 const optimize = b.standardOptimizeOption(.{});
5 const target = b.standardTargetOptions(.{}); 7 const target = b.standardTargetOptions(.{});
6 8
7 b.addModule(.{ .name = "clap", .source_file = .{ .path = "clap.zig" } });
8
9 const test_step = b.step("test", "Run all tests in all modes."); 9 const test_step = b.step("test", "Run all tests in all modes.");
10 const tests = b.addTest(.{ 10 const tests = b.addTest(.{
11 .root_source_file = .{ .path = "clap.zig" }, 11 .root_source_file = .{ .path = "clap.zig" },