From 62244aea59b72660bb48ac02797ef554d1c52bc1 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 1 Jun 2026 16:06:29 -0700 Subject: [PATCH] update to zig 0.15.2 --- build.zig | 10 ++++++---- licenses.txt | 6 ++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 139d17818965142166a9090926c426e5fccf69d7..b3bc1b2bc54fce0e0a0b279427273e505b20bab3 100644 --- a/build.zig +++ b/build.zig @@ -3,7 +3,7 @@ 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 gen_step = b.step("generate", ""); @@ -15,9 +15,11 @@ pub fn build(b: *std.Build) void { gen_step.dependOn(&gen_install.step); 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 7eee9db8315eecc204567c816c605a37dd79c691..c808c005bceea1a1cbde0fca67a79af151ffdc6d 100644 --- a/licenses.txt +++ b/licenses.txt @@ -1,10 +1,16 @@ MPL-2.0: = https://spdx.org/licenses/MPL-2.0 - This +- git https://github.com/nektro/zig-nio - git https://github.com/nektro/zig-unicode-idna MIT: = https://spdx.org/licenses/MIT - git https://github.com/nektro/zig-expect - git https://github.com/nektro/zig-extras +- git https://github.com/nektro/zig-sys-darwin +- git https://github.com/nektro/zig-sys-linux - git https://github.com/nektro/zig-unicode-ucd + +Unspecified: +- system_lib c -- 2.54.0