We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88bc63 commit e3fc251Copy full SHA for e3fc251
build.zig
@@ -4,16 +4,14 @@ pub fn build(b: *Build) void {
4
const target = b.standardTargetOptions(.{});
5
const optimize = b.standardOptimizeOption(.{});
6
7
- _ = b.addModule("ansi_term", .{
8
- .root_source_file = b.path("src/main.zig"),
9
- });
10
-
11
- var main_tests = b.addTest(.{
+ const module = b.addModule("ansi_term", .{
12
.root_source_file = b.path("src/main.zig"),
13
.target = target,
14
.optimize = optimize,
15
});
16
+ const main_tests = b.addTest(.{ .root_module = module });
+
17
const run_main_tests = b.addRunArtifact(main_tests);
18
19
const test_step = b.step("test", "Run library tests");
0 commit comments