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
9 const obj = b.addObject(.{
10 .name = "main",
11 .root_module = b.createModule(.{
12 .root_source_file = b.path("main.zig"),
13 .optimize = optimize,
14 .target = b.graph.host,
15 }),
16 });
17 _ = obj.getEmittedAsm();
18 b.default_step.dependOn(&obj.step);
19
20 test_step.dependOn(&obj.step);
21}