From b8b2cf891da782eb00433ccc5505c1fa5e4ed81a Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Wed, 1 Mar 2023 15:48:59 +0100 Subject: Mode addModule to the top --- build.zig | 4 ++-- 1 file 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 @@ const std = @import("std"); pub fn build(b: *std.Build) void { + b.addModule(.{ .name = "clap", .source_file = .{ .path = "clap.zig" } }); + const optimize = b.standardOptimizeOption(.{}); const target = b.standardTargetOptions(.{}); - b.addModule(.{ .name = "clap", .source_file = .{ .path = "clap.zig" } }); - const test_step = b.step("test", "Run all tests in all modes."); const tests = b.addTest(.{ .root_source_file = .{ .path = "clap.zig" }, -- cgit v1.2.3