You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microzig/build.zig

21 lines
570 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
buildTools(b);
}
fn buildTools(b: *std.Build) void {
const tools_step = b.step("tools", "Only build the development tools");
b.getInstallStep().dependOn(tools_step);
const archive_info = b.addExecutable(.{
.name = "archive-info",
.optimize = .ReleaseSafe,
.root_source_file = .{ .path = "tools/archive-info.zig" },
});
tools_step.dependOn(&b.addInstallArtifact(archive_info, .{
.dest_dir = .{ .override = .{ .custom = "tools" } },
}).step);
}