summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 7598ccb..6c9fbe2 100644
--- a/build.zig
+++ b/build.zig
@@ -1,7 +1,7 @@
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" } }); 4 const clap_mod = b.addModule("clap", .{ .source_file = .{ .path = "clap.zig" } });
5 5
6 const optimize = b.standardOptimizeOption(.{}); 6 const optimize = b.standardOptimizeOption(.{});
7 const target = b.standardTargetOptions(.{}); 7 const target = b.standardTargetOptions(.{});
@@ -28,7 +28,7 @@ pub fn build(b: *std.Build) void {
28 .target = target, 28 .target = target,
29 .optimize = optimize, 29 .optimize = optimize,
30 }); 30 });
31 example.addAnonymousModule("clap", .{ .source_file = .{ .path = "clap.zig" } }); 31 example.addModule("clap", clap_mod);
32 example.install(); 32 example.install();
33 example_step.dependOn(&example.step); 33 example_step.dependOn(&example.step);
34 } 34 }