diff --git a/build.zig b/build.zig index 6873a25d0c7ba768426f1455abbebba727e30c9d..b48cd6ea7daef73921f16c72c12de62f46d5732c 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, + }), }); tests.use_llvm = !disable_llvm; tests.use_lld = !disable_llvm; diff --git a/licenses.txt b/licenses.txt index 728089f444b1699f3c94f6841d719abda91c029f..f71da1bf71dbf050a2f3371f14fefb1f4051a397 100644 --- a/licenses.txt +++ b/licenses.txt @@ -2,3 +2,13 @@ MIT: = https://spdx.org/licenses/MIT - This - 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 + +MPL-2.0: += https://spdx.org/licenses/MPL-2.0 +- git https://github.com/nektro/zig-nio + +Unspecified: +- system_lib c