authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:32:23 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:32:23 -08:00
log8e5209615d55559b6c14005e762c234260c57af8
treee40130e68906b728ca41065b2e08985255e1a77f
parent20fdf1911d7227a93d2165392a37cb5c85bee1f1

update to zig 0.13


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

.gitignore+3-3
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1zig-cache
2.zig-cache1.zig-cache
3zig-out2zig-out
4/deps.zig3deps.zig
5/.zigmod4.zigmod
5files.zig
6zigmod.lock6zigmod.lock
build.zig+10-8
...@@ -1,18 +1,20 @@...@@ -1,18 +1,20 @@
1const std = @import("std");1const std = @import("std");
2const deps = @import("./deps.zig");2const deps = @import("./deps.zig");
33
4pub fn build(b: *std.build.Builder) void {4pub fn build(b: *std.Build) void {
5 const target = b.standardTargetOptions(.{});5 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
67
7 const mode = b.standardReleaseOptions();8 const exe = b.addExecutable(.{
89 .name = "zig-leven",
9 const exe = b.addExecutable("zig-leven", "src/main.zig");10 .root_source_file = b.path("src/main.zig"),
10 exe.setTarget(target);11 .target = target,
11 exe.setBuildMode(mode);12 .optimize = mode,
13 });
12 deps.addAllTo(exe);14 deps.addAllTo(exe);
13 exe.install();15 b.installArtifact(exe);
1416
15 const run_cmd = exe.run();17 const run_cmd = b.addRunArtifact(exe);
16 run_cmd.step.dependOn(b.getInstallStep());18 run_cmd.step.dependOn(b.getInstallStep());
17 if (b.args) |args| {19 if (b.args) |args| {
18 run_cmd.addArgs(args);20 run_cmd.addArgs(args);