master
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const test_step = b.step("test", "Test it");
5 b.default_step = test_step;
6
7 const optimize: std.builtin.OptimizeMode = .Debug;
8 const target = b.graph.host;
9
10 const obj = b.addObject(.{
11 .name = "test",
12 .root_module = b.createModule(.{
13 .root_source_file = b.path("test.zig"),
14 .target = target,
15 .optimize = optimize,
16 }),
17 });
18
19 // TODO: actually check the output
20 _ = obj.getEmittedBin();
21
22 test_step.dependOn(&obj.step);
23}