-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_minimal.zig
More file actions
22 lines (19 loc) · 655 Bytes
/
build_minimal.zig
File metadata and controls
22 lines (19 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const std = @import("std");
pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});
const target = b.standardTargetOptions(.{});
const root_mod = b.createModule(.{
.root_source_file = b.path("src/hslm/cli.zig"),
.target = target,
.optimize = optimize,
});
const hslm_cli = b.addExecutable(.{
.name = "hslm-cli",
.root_module = root_mod,
});
b.installArtifact(hslm_cli);
const hslm_run = b.addRunArtifact(hslm_cli);
const hslm_step = b.step("hslm", "Build and run HSLM CLI");
hslm_step.dependOn(&hslm_run.step);
b.default_step = hslm_step;
}