Skip to content

Commit c36f75d

Browse files
Merge pull request #39 from lishaduck/build-0.14.0
Address deprecations in std.Build
2 parents d88bc63 + ab91c12 commit c36f75d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-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");

build.zig.zon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
.version = "0.1.0",
44
.fingerprint = 0xa403c76fcb80b6fd,
55

6+
.minimum_zig_version = "0.14.0",
7+
68
.paths = .{
79
"build.zig",
810
"build.zig.zon",

0 commit comments

Comments
 (0)