1const std = @import("std");
 2const builtin = @import("builtin");
 3
 4pub fn build(b: *std.Build) void {
 5    const test_step = b.step("test", "Test it");
 6    b.default_step = test_step;
 7
 8    for ([_]bool{ false, true }) |use_llvm| {
 9        const main = b.addObject(.{
10            .name = "main",
11            .root_module = b.createModule(.{
12                .root_source_file = b.path("main.zig"),
13                .target = b.resolveTargetQuery(.{
14                    .cpu_arch = .x86_64,
15                    .os_tag = .linux,
16                }),
17            }),
18            .use_llvm = use_llvm,
19            .use_lld = use_llvm,
20        });
21        _ = main.getEmittedBin();
22        test_step.dependOn(&main.step);
23    }
24}