authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:28:37 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:28:37 -08:00
log01ba1479e7d4fe9a7d4629d159f4e3c58c0b6df9
treeae977f4652886579b7180df91fa272f26c5e2efc
parent91ec4bc936e3a8f21b19df822f7c60d87be8e8c1

update to zig 0.13


2 files changed, 5 insertions(+), 3 deletions(-)

.gitignore+3-1
...@@ -1,4 +1,6 @@...@@ -1,4 +1,6 @@
1zig-*1.zig-cache
2zig-out
2.zigmod3.zigmod
3deps.zig4deps.zig
5files.zig
4zigmod.lock6zigmod.lock
build.zig+2-2
...@@ -1,13 +1,13 @@...@@ -1,13 +1,13 @@
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;6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
77
8 const exe = b.addExecutable(.{8 const exe = b.addExecutable(.{
9 .name = "zig-flag",9 .name = "zig-flag",
10 .root_source_file = .{ .path = "src/main.zig" },10 .root_source_file = b.path("src/main.zig"),
11 .target = target,11 .target = target,
12 .optimize = mode,12 .optimize = mode,
13 });13 });