diff options
| author | 2023-03-01 15:48:59 +0100 | |
|---|---|---|
| committer | 2023-03-01 15:48:59 +0100 | |
| commit | b8b2cf891da782eb00433ccc5505c1fa5e4ed81a (patch) | |
| tree | cf9519e08a3932f08c0fe85e725af68172331c9e /build.zig | |
| parent | Delete dependabot.yml. We don't have dependecies (diff) | |
| download | zig-clap-b8b2cf891da782eb00433ccc5505c1fa5e4ed81a.tar.gz zig-clap-b8b2cf891da782eb00433ccc5505c1fa5e4ed81a.tar.xz zig-clap-b8b2cf891da782eb00433ccc5505c1fa5e4ed81a.zip | |
Mode addModule to the top
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,11 +1,11 @@ | |||
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | 2 | ||
| 3 | pub fn build(b: *std.Build) void { | 3 | pub 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" }, |