Skip to content

Commit e3fc251

Browse files
committed
chore: address deprecations in std.Build
1 parent d88bc63 commit e3fc251

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.zig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ pub fn build(b: *Build) void {
44
const target = b.standardTargetOptions(.{});
55
const optimize = b.standardOptimizeOption(.{});
66

7-
_ = b.addModule("ansi_term", .{
8-
.root_source_file = b.path("src/main.zig"),
9-
});
10-
11-
var main_tests = b.addTest(.{
7+
const module = b.addModule("ansi_term", .{
128
.root_source_file = b.path("src/main.zig"),
139
.target = target,
1410
.optimize = optimize,
1511
});
1612

13+
const main_tests = b.addTest(.{ .root_module = module });
14+
1715
const run_main_tests = b.addRunArtifact(main_tests);
1816

1917
const test_step = b.step("test", "Run library tests");

0 commit comments

Comments
 (0)