25 lines
605 B
Zig
25 lines
605 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
const exe = b.addExecutable(.{
|
|
.name = "day1",
|
|
.root_module = b.createModule(.{
|
|
.optimize = optimize,
|
|
.target = target,
|
|
.root_source_file = b.path("day1.zig"),
|
|
}),
|
|
});
|
|
|
|
b.installArtifact(exe);
|
|
const run = b.addRunArtifact(exe);
|
|
const step = b.step("day1", "run day");
|
|
step.dependOn(&run.step);
|
|
|
|
if (b.args) |args| {
|
|
run.addArgs(args);
|
|
}
|
|
}
|