| author | |
| committer | |
| log | 93cf896aa15736459e05cf65cea4e9e458ece712 |
| tree | 51a0721723401735b2ff92e8d61343f172336857 |
| parent | fa67fd84a2cc9db16685220fcec1abd5cb8b6546 |
| signature |
2 files changed, 12 insertions(+), 4 deletions(-)
build.zig+6-4| ... | @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); | ... | @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); |
| 3 | 3 | ||
| 4 | pub fn build(b: *std.Build) void { | 4 | pub 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; |
| 8 | 8 | ||
| 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+6| ... | @@ -1,6 +1,7 @@ | ... | @@ -1,6 +1,7 @@ |
| 1 | MPL-2.0: | 1 | MPL-2.0: |
| 2 | = https://spdx.org/licenses/MPL-2.0 | 2 | = https://spdx.org/licenses/MPL-2.0 |
| 3 | - This | 3 | - This |
| 4 | - git https://github.com/nektro/zig-nio | ||
| 4 | - git https://github.com/nektro/zig-unicode-idna | 5 | - git https://github.com/nektro/zig-unicode-idna |
| 5 | - git https://github.com/nektro/zig-whatwg-url | 6 | - git https://github.com/nektro/zig-whatwg-url |
| 6 | 7 | ||
| ... | @@ -8,4 +9,9 @@ MIT: | ... | @@ -8,4 +9,9 @@ MIT: |
| 8 | = https://spdx.org/licenses/MIT | 9 | = https://spdx.org/licenses/MIT |
| 9 | - git https://github.com/nektro/zig-expect | 10 | - git https://github.com/nektro/zig-expect |
| 10 | - git https://github.com/nektro/zig-extras | 11 | - git https://github.com/nektro/zig-extras |
| 12 | - git https://github.com/nektro/zig-sys-darwin | ||
| 13 | - git https://github.com/nektro/zig-sys-linux | ||
| 11 | - git https://github.com/nektro/zig-unicode-ucd | 14 | - git https://github.com/nektro/zig-unicode-ucd |
| 15 | |||
| 16 | Unspecified: | ||
| 17 | - system_lib c |