diff options
| author | 2023-02-26 10:05:56 -0800 | |
|---|---|---|
| committer | 2023-02-26 19:05:56 +0100 | |
| commit | 9c3ac846121a03934c7460cc54989059b1f66b22 (patch) | |
| tree | 262bd64867b472296594eaba94727f5dd8a18802 /build.zig | |
| parent | chore: update to latest master (diff) | |
| download | zig-clap-9c3ac846121a03934c7460cc54989059b1f66b22.tar.gz zig-clap-9c3ac846121a03934c7460cc54989059b1f66b22.tar.xz zig-clap-9c3ac846121a03934c7460cc54989059b1f66b22.zip | |
build: expose 'clap' module for dependeees (#92)
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -4,6 +4,8 @@ pub fn build(b: *std.Build) void { | |||
| 4 | const optimize = b.standardOptimizeOption(.{}); | 4 | const optimize = b.standardOptimizeOption(.{}); |
| 5 | const target = b.standardTargetOptions(.{}); | 5 | const target = b.standardTargetOptions(.{}); |
| 6 | 6 | ||
| 7 | b.addModule(.{ .name = "clap", .source_file = .{ .path = "clap.zig" } }); | ||
| 8 | |||
| 7 | 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."); |
| 8 | const tests = b.addTest(.{ | 10 | const tests = b.addTest(.{ |
| 9 | .root_source_file = .{ .path = "clap.zig" }, | 11 | .root_source_file = .{ .path = "clap.zig" }, |