authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:36:43 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:36:43 -07:00
log729990060aa9fc694ee8d030813eb1e553ffa735
treee4b194cc3017625fabeec6b83c22a5cafe8ef76d
parent6947fa581e7fdb447e06d1a0444af3a60d38f5d1

cleanup build.zig


2 files changed, 11 insertions(+), 13 deletions(-)

build.zig+11-12
......@@ -1,27 +1,26 @@
11const std = @import("std");
2const deps = @import("./deps.zig");
23
34pub fn build(b: *std.build.Builder) void {
4 // Standard target options allows the person running `zig build` to choose
5 // what target to build for. Here we do not override the defaults, which
6 // means any target is allowed, and the default is native. Other options
7 // for restricting supported target set are available.
85 const target = b.standardTargetOptions(.{});
96
10 // Standard release options allow the person running `zig build` to select
11 // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
127 const mode = b.standardReleaseOptions();
138
149 const exe = b.addExecutable("zig-time", "main.zig");
1510 exe.setTarget(target);
1611 exe.setBuildMode(mode);
12 deps.addAllTo(exe);
1713 exe.install();
1814
19 const run_cmd = exe.run();
20 run_cmd.step.dependOn(b.getInstallStep());
21 if (b.args) |args| {
22 run_cmd.addArgs(args);
15 {
16 const run_cmd = exe.run();
17 run_cmd.step.dependOn(b.getInstallStep());
18 if (b.args) |args| {
19 run_cmd.addArgs(args);
20 }
21
22 const run_step = b.step("run", "Run the app");
23 run_step.dependOn(&run_cmd.step);
2324 }
2425
25 const run_step = b.step("run", "Run the app");
26 run_step.dependOn(&run_cmd.step);
2726}
time.zig-1
......@@ -221,7 +221,6 @@ pub const DateTime = struct {
221221 },
222222
223223 else => @compileError("'" ++ @tagName(tag) ++ "' not currently supported"),
224
225224 }
226225 next = null;
227226 s = i;