From 53dee14017f3bf7c19a77859cfbee620f39b37c2 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Wed, 7 May 2025 15:11:59 +0200 Subject: chore: Update setup-zig to v2 --- build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index eed582d..7a1fe95 100644 --- a/build.zig +++ b/build.zig @@ -1,15 +1,15 @@ pub fn build(b: *std.Build) void { - const clap_mod = b.addModule("clap", .{ .root_source_file = b.path("clap.zig") }); - const optimize = b.standardOptimizeOption(.{}); const target = b.standardTargetOptions(.{}); - const test_step = b.step("test", "Run all tests in all modes."); - const tests = b.addTest(.{ + const clap_mod = b.addModule("clap", .{ .root_source_file = b.path("clap.zig"), .target = target, .optimize = optimize, }); + + const test_step = b.step("test", "Run all tests in all modes."); + const tests = b.addTest(.{ .root_module = clap_mod }); const run_tests = b.addRunArtifact(tests); test_step.dependOn(&run_tests.step); -- cgit v1.2.3