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 @@
1zig-cache
21.zig-cache
32zig-out
4/deps.zig
5/.zigmod
3deps.zig
4.zigmod
5files.zig
66zigmod.lock
build.zig+10-8
......@@ -1,18 +1,20 @@
11const std = @import("std");
22const deps = @import("./deps.zig");
33
4pub fn build(b: *std.build.Builder) void {
4pub fn build(b: *std.Build) void {
55 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
67
7 const mode = b.standardReleaseOptions();
8
9 const exe = b.addExecutable("zig-leven", "src/main.zig");
10 exe.setTarget(target);
11 exe.setBuildMode(mode);
8 const exe = b.addExecutable(.{
9 .name = "zig-leven",
10 .root_source_file = b.path("src/main.zig"),
11 .target = target,
12 .optimize = mode,
13 });
1214 deps.addAllTo(exe);
13 exe.install();
15 b.installArtifact(exe);
1416
15 const run_cmd = exe.run();
17 const run_cmd = b.addRunArtifact(exe);
1618 run_cmd.step.dependOn(b.getInstallStep());
1719 if (b.args) |args| {
1820 run_cmd.addArgs(args);