From a7c82884f054e255aa9f4de2b7a84be572f48196 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 1 Jun 2026 16:16:58 -0700 Subject: [PATCH] update to zig 0.15.2 --- build.zig | 10 ++++++---- licenses.txt | 3 --- test.zig | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/build.zig b/build.zig index 3271cf016af8a1023a18d9e377fc6e89dee60990..2cb1cff60b0d8d40a047f0b781fc3671eabcb173 100644 --- a/build.zig +++ b/build.zig @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; + const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug; const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false; const tests = b.addTest(.{ - .root_source_file = b.path("test.zig"), - .target = target, - .optimize = mode, + .root_module = b.createModule(.{ + .root_source_file = b.path("test.zig"), + .target = target, + .optimize = mode, + }), }); deps.addAllTo(tests); tests.use_llvm = !disable_llvm; diff --git a/licenses.txt b/licenses.txt index 2f733bf5b72c409663ddd3bc91d748ac7540d3aa..52e4c5c26f36632734af1880804abdb07b3c773f 100644 --- a/licenses.txt +++ b/licenses.txt @@ -3,17 +3,14 @@ MIT: - This - git https://github.com/nektro/zig-expect - git https://github.com/nektro/zig-extras -- git https://github.com/nektro/zig-json - git https://github.com/nektro/zig-leven - git https://github.com/nektro/zig-licenses-text - git https://github.com/nektro/zig-sys-darwin - git https://github.com/nektro/zig-sys-linux - git https://github.com/nektro/zig-time -- git https://github.com/nektro/zig-tracer MPL-2.0: = https://spdx.org/licenses/MPL-2.0 -- git https://github.com/nektro/zig-intrusive-parser - git https://github.com/nektro/zig-nfs - git https://github.com/nektro/zig-nio diff --git a/test.zig b/test.zig index 3a396aeb822fa11d104ba6e0ed2d33a3da5e77dc..ff4767a0d477fc5f8a96941eb63785d429bcf4e0 100644 --- a/test.zig +++ b/test.zig @@ -13,7 +13,6 @@ test { } test { const alloc = std.testing.allocator; - const dir = std.fs.cwd(); - const license = try detect.detectInDir(alloc, dir); + const license = try detect.detectInDir(alloc, .cwd()); try expect(license).toEqualString("MIT"); } -- 2.54.0