We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f355bd commit b8054a8Copy full SHA for b8054a8
1 file changed
build.zig
@@ -2,11 +2,14 @@ const Builder = @import("std").build.Builder;
2
3
pub fn build(b: *Builder) void {
4
const target = b.standardTargetOptions(.{});
5
- const mode = b.standardReleaseOptions();
+ const optimize = b.standardOptimizeOption(.{});
6
7
- var main_tests = b.addTest("src/main.zig");
8
- main_tests.setTarget(target);
9
- main_tests.setBuildMode(mode);
+ var main_tests = b.addTest(.{
+ .name = "main test suite",
+ .root_source_file = .{ .path = "src/main.zig" },
10
+ .target = target,
11
+ .optimize = optimize,
12
+ });
13
14
const test_step = b.step("test", "Run library tests");
15
test_step.dependOn(&main_tests.step);
0 commit comments