summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar travisstaloch2023-02-26 10:05:56 -0800
committerGravatar GitHub2023-02-26 19:05:56 +0100
commit9c3ac846121a03934c7460cc54989059b1f66b22 (patch)
tree262bd64867b472296594eaba94727f5dd8a18802
parentchore: update to latest master (diff)
downloadzig-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>
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 0167d79..13c7c4b 100644
--- a/build.zig
+++ b/build.zig
@@ -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" },