authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:16:58 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 16:16:58 -07:00
loga7c82884f054e255aa9f4de2b7a84be572f48196
tree53e5726792cdabf8923ae81ed9fcfaf53e3a8b32
parentabb4775126543c1054a05f547884775919f275d0
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


3 files changed, 7 insertions(+), 9 deletions(-)

build.zig+6-4
...@@ -3,13 +3,15 @@ const deps = @import("./deps.zig");...@@ -3,13 +3,15 @@ const deps = @import("./deps.zig");
33
4pub fn build(b: *std.Build) 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.OptimizeMode, "mode", "") orelse .Debug;
7 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;7 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
88
9 const tests = b.addTest(.{9 const tests = b.addTest(.{
10 .root_source_file = b.path("test.zig"),10 .root_module = b.createModule(.{
11 .target = target,11 .root_source_file = b.path("test.zig"),
12 .optimize = mode,12 .target = target,
13 .optimize = mode,
14 }),
13 });15 });
14 deps.addAllTo(tests);16 deps.addAllTo(tests);
15 tests.use_llvm = !disable_llvm;17 tests.use_llvm = !disable_llvm;
licenses.txt-3
...@@ -3,17 +3,14 @@ MIT:...@@ -3,17 +3,14 @@ MIT:
3- This3- This
4- git https://github.com/nektro/zig-expect4- git https://github.com/nektro/zig-expect
5- git https://github.com/nektro/zig-extras5- git https://github.com/nektro/zig-extras
6- git https://github.com/nektro/zig-json
7- git https://github.com/nektro/zig-leven6- git https://github.com/nektro/zig-leven
8- git https://github.com/nektro/zig-licenses-text7- git https://github.com/nektro/zig-licenses-text
9- git https://github.com/nektro/zig-sys-darwin8- git https://github.com/nektro/zig-sys-darwin
10- git https://github.com/nektro/zig-sys-linux9- git https://github.com/nektro/zig-sys-linux
11- git https://github.com/nektro/zig-time10- git https://github.com/nektro/zig-time
12- git https://github.com/nektro/zig-tracer
1311
14MPL-2.0:12MPL-2.0:
15= https://spdx.org/licenses/MPL-2.013= https://spdx.org/licenses/MPL-2.0
16- git https://github.com/nektro/zig-intrusive-parser
17- git https://github.com/nektro/zig-nfs14- git https://github.com/nektro/zig-nfs
18- git https://github.com/nektro/zig-nio15- git https://github.com/nektro/zig-nio
1916
test.zig+1-2
...@@ -13,7 +13,6 @@ test {...@@ -13,7 +13,6 @@ test {
13}13}
14test {14test {
15 const alloc = std.testing.allocator;15 const alloc = std.testing.allocator;
16 const dir = std.fs.cwd();16 const license = try detect.detectInDir(alloc, .cwd());
17 const license = try detect.detectInDir(alloc, dir);
18 try expect(license).toEqualString("MIT");17 try expect(license).toEqualString("MIT");
19}18}