authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:32:48 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-12-28 19:32:48 -08:00
logf1bb7611d250bae8a3c7a217387c74a0061e2f77
tree81d7186546a3824dc64bddf3b6906eb3243656ed
parent4a0db844a3093a51b45e03c1721a7ccb6c3ce393

update to zig 0.13


3 files changed, 18 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/.zigmod3.zigmod
5/deps.zig4deps.zig
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-license-detect",
9 const exe = b.addExecutable("zig-license-detect", "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);
licenses.txt created+5
...@@ -0,0 +1,5 @@
1MIT:
2= https://spdx.org/licenses/MIT
3- This
4- git https://github.com/nektro/zig-leven
5- git https://github.com/nektro/zig-licenses-text