From d2369e4785af50f04797169d2d586dfbc9bbd415 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 1 Jun 2026 16:18:43 -0700 Subject: [PATCH] update to zig 0.15.2 --- build.zig | 10 ++++++---- licenses.txt | 4 ++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 59036c2d9b5d2b3660df29c05b78488d2126d986..2432d1dc657d345948b14b11e6900f29710c6bea 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 t = 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(t); t.use_llvm = !disable_llvm; diff --git a/licenses.txt b/licenses.txt index e1193d64513fd06a1ca0e6e6a5ef031ed3657953..f71da1bf71dbf050a2f3371f14fefb1f4051a397 100644 --- a/licenses.txt +++ b/licenses.txt @@ -6,5 +6,9 @@ MIT: - git https://github.com/nektro/zig-sys-darwin - git https://github.com/nektro/zig-sys-linux +MPL-2.0: += https://spdx.org/licenses/MPL-2.0 +- git https://github.com/nektro/zig-nio + Unspecified: - system_lib c -- 2.54.0