File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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" );
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments