| author | |
| committer | |
| log | a7c82884f054e255aa9f4de2b7a84be572f48196 |
| tree | 53e5726792cdabf8923ae81ed9fcfaf53e3a8b32 |
| parent | abb4775126543c1054a05f547884775919f275d0 |
| signature |
3 files changed, 7 insertions(+), 9 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-3| ... | @@ -3,17 +3,14 @@ MIT: | ... | @@ -3,17 +3,14 @@ MIT: |
| 3 | - This | 3 | - This |
| 4 | - git https://github.com/nektro/zig-expect | 4 | - git https://github.com/nektro/zig-expect |
| 5 | - git https://github.com/nektro/zig-extras | 5 | - git https://github.com/nektro/zig-extras |
| 6 | - git https://github.com/nektro/zig-json | ||
| 7 | - git https://github.com/nektro/zig-leven | 6 | - git https://github.com/nektro/zig-leven |
| 8 | - git https://github.com/nektro/zig-licenses-text | 7 | - git https://github.com/nektro/zig-licenses-text |
| 9 | - git https://github.com/nektro/zig-sys-darwin | 8 | - git https://github.com/nektro/zig-sys-darwin |
| 10 | - git https://github.com/nektro/zig-sys-linux | 9 | - git https://github.com/nektro/zig-sys-linux |
| 11 | - git https://github.com/nektro/zig-time | 10 | - git https://github.com/nektro/zig-time |
| 12 | - git https://github.com/nektro/zig-tracer | ||
| 13 | 11 | ||
| 14 | MPL-2.0: | 12 | MPL-2.0: |
| 15 | = https://spdx.org/licenses/MPL-2.0 | 13 | = https://spdx.org/licenses/MPL-2.0 |
| 16 | - git https://github.com/nektro/zig-intrusive-parser | ||
| 17 | - git https://github.com/nektro/zig-nfs | 14 | - git https://github.com/nektro/zig-nfs |
| 18 | - git https://github.com/nektro/zig-nio | 15 | - git https://github.com/nektro/zig-nio |
| 19 | 16 |
test.zig+1-2| ... | @@ -13,7 +13,6 @@ test { | ... | @@ -13,7 +13,6 @@ test { |
| 13 | } | 13 | } |
| 14 | test { | 14 | test { |
| 15 | const alloc = std.testing.allocator; | 15 | const alloc = std.testing.allocator; |
| 16 | const dir = std.fs.cwd(); | 16 | const license = try detect.detectInDir(alloc, .cwd()); |
| 17 | const license = try detect.detectInDir(alloc, dir); | ||
| 18 | try expect(license).toEqualString("MIT"); | 17 | try expect(license).toEqualString("MIT"); |
| 19 | } | 18 | } |